Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.00118, allocations: 99.3 kB / 16.94 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 183.7 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005017/0.0005017, allocations: 12 kB / 280.7 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1226, allocations: 47.58 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01079/0.1335, allocations: 9.604 MB / 337.9 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007106/0.1407, allocations: 3.23 MB / 341.2 MB, free: 7.223 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001145/0.1418, allocations: 39.88 kB / 341.2 MB, free: 7.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001504/0.1434, allocations: 0.5246 MB / 341.7 MB, free: 6.656 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001889/0.1453, allocations: 0.7556 MB / 342.5 MB, free: 5.898 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007011/0.146, allocations: 247.7 kB / 342.7 MB, free: 5.656 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002589/0.1486, allocations: 1.694 MB / 344.4 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.1498, allocations: 0.695 MB / 345.1 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001322/0.1511, allocations: 0.677 MB / 345.8 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00106/0.1522, allocations: 0.7621 MB / 346.6 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001879/0.1524, allocations: 100 kB / 346.6 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004599/0.1528, allocations: 140 kB / 346.8 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002715/0.1531, allocations: 282.8 kB / 347.1 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000443/0.1536, allocations: 404.7 kB / 347.5 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002181/0.1558, allocations: 2.138 MB / 349.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1558, allocations: 0 / 349.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1558, allocations: 0 / 349.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.79e-05/0.1558, allocations: 4 kB / 349.6 MB, free: 14.73 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003392/0.1592, allocations: 1.825 MB / 351.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.88e-05/0.1593, allocations: 12.03 kB / 351.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007265/0.16, allocations: 253.5 kB / 351.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002029/0.1621, allocations: 1.067 MB / 352.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.1622, allocations: 119.1 kB / 352.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000213/0.1624, allocations: 163.9 kB / 353 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002691/0.1651, allocations: 1.465 MB / 354.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.812e-05/0.1652, allocations: 7.906 kB / 354.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.1653, allocations: 64 kB / 354.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.891e-05/0.1654, allocations: 40 kB / 354.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002023/0.1674, allocations: 1.014 MB / 355.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008591/0.176, allocations: 6.156 MB / 361.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.1773, allocations: 0.5763 MB / 362.3 MB, free: 1.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.1774, allocations: 8.703 kB / 362.4 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.1774, allocations: 43.08 kB / 362.4 MB, free: 1.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 4.659e-06/0.1774, allocations: 0 / 362.4 MB, free: 1.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004993/0.1824, allocations: 2.272 MB / 364.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.471e-05/0.1825, allocations: 115.5 kB / 364.8 MB, free: 14.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001684/0.1842, allocations: 1.181 MB / 366 MB, free: 13.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.105e-05/0.1843, allocations: 37.7 kB / 366 MB, free: 13.69 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006553/0.1849, allocations: 0.8569 MB / 366.9 MB, free: 12.83 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.1852, allocations: 264.3 kB / 367.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.347e-05/0.1852, allocations: 20 kB / 367.1 MB, free: 12.55 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.1854, allocations: 353.9 kB / 367.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005376/0.186, allocations: 278.4 kB / 367.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008778/0.1869, allocations: 0.7147 MB / 368.5 MB, free: 11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007137/0.1876, allocations: 399 kB / 368.9 MB, free: 10.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.1876, allocations: 4 kB / 368.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.002275/0.1899, allocations: 1.213 MB / 370.1 MB, free: 9.371 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.1899, allocations: 16.03 kB / 370.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/0.19, allocations: 16 kB / 370.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004882/0.1905, allocations: 110.5 kB / 370.2 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008622/0.1913, allocations: 255.6 kB / 370.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003752/0.1951, allocations: 4.204 MB / 374.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.1963, allocations: 52.02 kB / 374.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.506e-05/0.1964, allocations: 56 kB / 374.8 MB, free: 4.266 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0007588/0.1972, allocations: 365.4 kB / 375.1 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.1974, allocations: 138.6 kB / 375.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001595/0.199, allocations: 0.7943 MB / 376.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.199, allocations: 4 kB / 376.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.199, allocations: 4 kB / 376.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.199, allocations: 3.984 kB / 376.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003648/0.2027, allocations: 2.181 MB / 378.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.457e-06/0.2027, allocations: 4 kB / 378.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000564/0.2033, allocations: 136.2 kB / 378.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003666/0.2036, allocations: 102.5 kB / 378.5 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.684e-05/0.2037, allocations: 23.95 kB / 378.5 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.274/0.4777, allocations: 4.307 MB / 382.8 MB, free: 46.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.453e-06/0.4777, allocations: 4.828 kB / 382.8 MB, free: 46.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00319/0.4809, allocations: 1.428 MB / 384.2 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007181/0.4817, allocations: 261 kB / 384.5 MB, free: 45.56 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.4818, allocations: 19.22 kB / 384.5 MB, free: 45.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005919/0.4824, allocations: 39.48 kB / 384.6 MB, free: 45.56 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.4827, allocations: 62.75 kB / 384.6 MB, free: 45.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.385e-05/0.4827, allocations: 22.33 kB / 384.6 MB, free: 45.56 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001636/0.4844, allocations: 0.7851 MB / 385.4 MB, free: 45.45 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.615e-06/0.4844, allocations: 0 / 385.4 MB, free: 45.45 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001746/0.4861, allocations: 320.8 kB / 385.7 MB, free: 45.45 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003924/0.4865, allocations: 130.9 kB / 385.9 MB, free: 45.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.489, allocations: 1.097 MB / 387 MB, free: 44.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.489, allocations: 2.156 kB / 387 MB, free: 44.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001166/0.4902, allocations: 0.6826 MB / 387.7 MB, free: 44.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/0.4919, allocations: 328.6 kB / 388 MB, free: 44.28 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006471/0.4984, allocations: 3.445 MB / 391.4 MB, free: 42.14 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.4994, allocations: 1.252 MB / 392.7 MB, free: 41.4 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009272/0.5004, allocations: 174.6 kB / 392.8 MB, free: 41.35 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002048/0.5006, allocations: 89.84 kB / 392.9 MB, free: 41.34 MB / 318.1 MB Notification: Performance of SimCode: time 1.372e-06/0.5006, allocations: 5.344 kB / 392.9 MB, free: 41.34 MB / 318.1 MB Notification: Performance of Templates: time 0.03294/0.5335, allocations: 14.62 MB / 407.6 MB, free: 33.6 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches