Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001602, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.002208/0.002208, allocations: 190 kB / 18.07 MB, free: 5.414 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.459/1.459, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001804/0.001804, allocations: 51.92 kB / 280 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1201, allocations: 46.63 MB / 326.6 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004643/0.1248, allocations: 4.053 MB / 330.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.1261, allocations: 0.9122 MB / 331.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.1263, allocations: 8 kB / 331.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.1266, allocations: 71.44 kB / 331.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002809/0.1269, allocations: 150.8 kB / 331.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.1272, allocations: 119.9 kB / 331.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005255/0.1277, allocations: 0.6459 MB / 332.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000275/0.128, allocations: 179.8 kB / 332.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002338/0.1282, allocations: 231 kB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002649/0.1285, allocations: 282.7 kB / 333.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.345e-05/0.1286, allocations: 36 kB / 333.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.916e-05/0.1287, allocations: 40 kB / 333.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.943e-05/0.1288, allocations: 119.4 kB / 333.4 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002316/0.129, allocations: 278.5 kB / 333.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004812/0.1295, allocations: 0.619 MB / 334.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1295, allocations: 0 / 334.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1295, allocations: 3.938 kB / 334.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.1296, allocations: 4 kB / 334.3 MB, free: 13.11 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001395/0.131, allocations: 0.8573 MB / 335.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.131, allocations: 8.031 kB / 335.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.1311, allocations: 68.19 kB / 335.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.1316, allocations: 363.7 kB / 335.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/0.1316, allocations: 37.38 kB / 335.7 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.739e-05/0.1317, allocations: 48.38 kB / 335.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007645/0.1325, allocations: 491.5 kB / 336.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.1325, allocations: 0 / 336.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/0.1325, allocations: 24 kB / 336.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.1326, allocations: 12 kB / 336.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005926/0.1332, allocations: 328.3 kB / 336.5 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002421/0.1356, allocations: 1.705 MB / 338.2 MB, free: 8.996 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004235/0.136, allocations: 257.1 kB / 338.5 MB, free: 8.727 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002233/0.1363, allocations: 142 kB / 338.6 MB, free: 8.582 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.949e-05/0.1363, allocations: 7.906 kB / 338.6 MB, free: 8.574 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.1363, allocations: 38.56 kB / 338.7 MB, free: 8.527 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.382e-06/0.1363, allocations: 4 kB / 338.7 MB, free: 8.523 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001805/0.1382, allocations: 0.9542 MB / 339.6 MB, free: 7.492 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.1382, allocations: 81.11 kB / 339.7 MB, free: 7.395 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003813/0.1386, allocations: 381.6 kB / 340.1 MB, free: 7.012 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.1386, allocations: 29.7 kB / 340.1 MB, free: 6.977 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.1388, allocations: 291.5 kB / 340.4 MB, free: 6.688 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.376e-05/0.1389, allocations: 114.2 kB / 340.5 MB, free: 6.574 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.139, allocations: 78.03 kB / 340.6 MB, free: 6.488 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1392, allocations: 362.7 kB / 340.9 MB, free: 6.125 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.1394, allocations: 100.8 kB / 341 MB, free: 6.027 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002582/0.1397, allocations: 194.5 kB / 341.2 MB, free: 5.801 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004379/0.1401, allocations: 302.1 kB / 341.5 MB, free: 5.469 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1401, allocations: 0 / 341.5 MB, free: 5.469 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008051/0.1409, allocations: 446.4 kB / 342 MB, free: 5.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.141, allocations: 8 kB / 342 MB, free: 5.012 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.141, allocations: 0 / 342 MB, free: 5.012 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003778/0.1414, allocations: 85.86 kB / 342.1 MB, free: 4.922 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003311/0.1417, allocations: 79.84 kB / 342.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002512/0.1442, allocations: 2.849 MB / 345 MB, free: 1.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.1445, allocations: 19.89 kB / 345 MB, free: 1.711 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.92e-05/0.1446, allocations: 16 kB / 345 MB, free: 1.695 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002695/0.1449, allocations: 173.7 kB / 345.2 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.7e-05/0.145, allocations: 43.53 kB / 345.2 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.113e-05/0.145, allocations: 47.45 kB / 345.3 MB, free: 1.422 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1451, allocations: 4 kB / 345.3 MB, free: 1.418 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.477e-06/0.1451, allocations: 0 / 345.3 MB, free: 1.418 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.1451, allocations: 4 kB / 345.3 MB, free: 1.414 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.1464, allocations: 0.9391 MB / 346.2 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1464, allocations: 0 / 346.2 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.1466, allocations: 47.91 kB / 346.3 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002569/0.1469, allocations: 85.83 kB / 346.3 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.1469, allocations: 8 kB / 346.4 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.1492, allocations: 2.853 MB / 349.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1492, allocations: 0 / 349.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000862/0.1501, allocations: 0.6129 MB / 349.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.1502, allocations: 116.7 kB / 349.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.113e-05/0.1503, allocations: 12.12 kB / 349.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003281/0.1506, allocations: 31.97 kB / 350 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.372e-05/0.1507, allocations: 31.91 kB / 350 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.165e-05/0.1507, allocations: 11.94 kB / 350 MB, free: 12.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002859/0.151, allocations: 271.2 kB / 350.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.151, allocations: 0 / 350.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000593/0.1516, allocations: 120 kB / 350.4 MB, free: 11.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001518/0.1518, allocations: 107.4 kB / 350.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000903/0.1527, allocations: 0.5049 MB / 351 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1527, allocations: 4 kB / 351 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005507/0.1533, allocations: 385.8 kB / 351.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006006/0.1539, allocations: 61.42 kB / 351.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.1556, allocations: 1.173 MB / 352.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.1559, allocations: 0.8353 MB / 353.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001705/0.1561, allocations: 43.3 kB / 353.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.282e-05/0.1562, allocations: 27.44 kB / 353.5 MB, free: 8.664 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1562, allocations: 0 / 353.5 MB, free: 8.664 MB / 302.1 MB Notification: Performance of Templates: time 0.008244/0.1644, allocations: 4.421 MB / 358 MB, free: 4.25 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches