Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.CoupledInductors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.iinternal|L2.iinternal|L3.iinternal",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors") translateModel(Modelica.Electrical.Spice3.Examples.CoupledInductors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.iinternal|L2.iinternal|L3.iinternal",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002751/0.002756, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.874/2.874, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001818/0.001819, allocations: 94.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006084/0.0006089, allocations: 16 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1424, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.005622/0.1481, allocations: 2.191 MB / 376.7 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.1508, allocations: 0.7336 MB / 377.5 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002873/0.1511, allocations: 11.94 kB / 377.5 MB, free: 12.49 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.1513, allocations: 43.67 kB / 377.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004335/0.1518, allocations: 87.78 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006766/0.1525, allocations: 91.84 kB / 377.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007968/0.1533, allocations: 284 kB / 378 MB, free: 11.99 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005437/0.1539, allocations: 162.3 kB / 378.1 MB, free: 11.83 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003811/0.1543, allocations: 151.4 kB / 378.3 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004241/0.1547, allocations: 159.3 kB / 378.4 MB, free: 11.52 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.1549, allocations: 24 kB / 378.5 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.155, allocations: 24 kB / 378.5 MB, free: 11.48 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.1552, allocations: 67.75 kB / 378.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.1553, allocations: 93.52 kB / 378.6 MB, free: 11.31 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007828/0.1562, allocations: 371.2 kB / 379 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1562, allocations: 0 / 379 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.484e-06/0.1562, allocations: 3.938 kB / 379 MB, free: 10.95 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.1562, allocations: 7.938 kB / 379 MB, free: 10.94 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.002115/0.1584, allocations: 0.6123 MB / 379.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/0.1585, allocations: 16.03 kB / 379.6 MB, free: 10.26 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.1587, allocations: 43.44 kB / 379.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006061/0.1593, allocations: 275.1 kB / 379.9 MB, free: 9.906 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.937e-05/0.1594, allocations: 37 kB / 380 MB, free: 9.871 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.1596, allocations: 36 kB / 380 MB, free: 9.836 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.1613, allocations: 451.2 kB / 380.5 MB, free: 9.367 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.496e-05/0.1614, allocations: 0 / 380.5 MB, free: 9.367 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.44e-05/0.1615, allocations: 16 kB / 380.5 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.607e-05/0.1615, allocations: 11.98 kB / 380.5 MB, free: 9.34 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.163, allocations: 291.8 kB / 380.8 MB, free: 9.055 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004838/0.1679, allocations: 1.314 MB / 382.1 MB, free: 7.652 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.1691, allocations: 242.8 kB / 382.3 MB, free: 7.406 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.273e-05/0.1692, allocations: 7.938 kB / 382.3 MB, free: 7.398 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.088e-05/0.1693, allocations: 38.56 kB / 382.4 MB, free: 7.352 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 5.11e-06/0.1693, allocations: 0 / 382.4 MB, free: 7.352 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.003825/0.1731, allocations: 0.5592 MB / 382.9 MB, free: 6.766 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001903/0.1734, allocations: 239.3 kB / 383.2 MB, free: 6.477 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004888/0.1739, allocations: 206.8 kB / 383.4 MB, free: 6.262 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.463e-05/0.174, allocations: 29.7 kB / 383.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.1743, allocations: 258.4 kB / 383.6 MB, free: 5.969 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001856/0.1745, allocations: 98.55 kB / 383.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.883e-05/0.1746, allocations: 8 kB / 383.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.1748, allocations: 322.8 kB / 384.1 MB, free: 5.539 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004655/0.1753, allocations: 79.97 kB / 384.1 MB, free: 5.461 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005568/0.1759, allocations: 159.3 kB / 384.3 MB, free: 5.277 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005736/0.1765, allocations: 99.69 kB / 384.4 MB, free: 5.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.1765, allocations: 0 / 384.4 MB, free: 5.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001212/0.1777, allocations: 273.4 kB / 384.7 MB, free: 4.906 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/0.1778, allocations: 8 kB / 384.7 MB, free: 4.898 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.1778, allocations: 4 kB / 384.7 MB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.599e-05/0.1779, allocations: 3.953 kB / 384.7 MB, free: 4.891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.1789, allocations: 87.92 kB / 384.8 MB, free: 4.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.744e-05/0.179, allocations: 4 kB / 384.8 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.1795, allocations: 35.66 kB / 384.8 MB, free: 4.766 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.998e-05/0.1796, allocations: 8 kB / 384.8 MB, free: 4.758 MB / 282.7 MB Warning: Assuming fixed start value for the following 2 variables: C2.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real C1.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004902/0.1801, allocations: 153.8 kB / 385 MB, free: 4.598 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.1802, allocations: 27.66 kB / 385 MB, free: 4.57 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.1804, allocations: 38.64 kB / 385 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/0.1804, allocations: 4 kB / 385 MB, free: 4.527 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.29e-05/0.1804, allocations: 3.953 kB / 385 MB, free: 4.523 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.1805, allocations: 0 / 385 MB, free: 4.523 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.1815, allocations: 401.1 kB / 385.4 MB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.1815, allocations: 3.938 kB / 385.4 MB, free: 4.078 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008388/0.1824, allocations: 47.97 kB / 385.5 MB, free: 4.031 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008092/0.1832, allocations: 88.73 kB / 385.6 MB, free: 3.941 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.034e-05/0.1833, allocations: 12 kB / 385.6 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004481/0.1878, allocations: 1.859 MB / 387.4 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/0.1878, allocations: 3.953 kB / 387.4 MB, free: 1.934 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/0.19, allocations: 0.5124 MB / 387.9 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.1901, allocations: 108.8 kB / 388.1 MB, free: 1.277 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.077e-05/0.1903, allocations: 8.062 kB / 388.1 MB, free: 1.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004496/0.1907, allocations: 12.08 kB / 388.1 MB, free: 1.258 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.1909, allocations: 27.95 kB / 388.1 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-05/0.191, allocations: 8 kB / 388.1 MB, free: 1.223 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002964/0.1913, allocations: 152.4 kB / 388.3 MB, free: 1.074 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.1913, allocations: 0 / 388.3 MB, free: 1.074 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008876/0.1922, allocations: 111.6 kB / 388.4 MB, free: 0.9648 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * 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 (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002212/0.1924, allocations: 103.2 kB / 388.5 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.1936, allocations: 219.9 kB / 388.7 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.317e-05/0.1936, allocations: 4 kB / 388.7 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.1946, allocations: 286.5 kB / 389 MB, free: 352 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004369/0.1951, allocations: 16 kB / 389 MB, free: 336 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.515/0.7101, allocations: 1.066 MB / 390 MB, free: 20.37 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004652/0.7106, allocations: 0.793 MB / 390.8 MB, free: 19.67 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.7109, allocations: 24.08 kB / 390.9 MB, free: 19.66 MB / 282.7 MB Notification: Performance of SimCode: time 1.603e-06/0.7109, allocations: 0 / 390.9 MB, free: 19.66 MB / 282.7 MB Notification: Performance of Templates: time 0.01836/0.7293, allocations: 3.864 MB / 394.7 MB, free: 19.45 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CoupledInductors/CoupledInductors.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches