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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 112.3 kB / 17.16 MB, free: 6.031 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.0011/0.0011, allocations: 190 kB / 18.07 MB, free: 5.266 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.446/1.446, allocations: 205.1 MB / 223.9 MB, free: 12.37 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.001208/0.001208, allocations: 55.92 kB / 280.1 MB, free: 3.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09706/0.09828, allocations: 46.63 MB / 326.7 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005838/0.1042, allocations: 4.057 MB / 330.8 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.106, allocations: 0.9161 MB / 331.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001967/0.1062, allocations: 11.94 kB / 331.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.1065, allocations: 67.5 kB / 331.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002913/0.1068, allocations: 150.8 kB / 331.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003098/0.1071, allocations: 127.8 kB / 332 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005725/0.1077, allocations: 0.642 MB / 332.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.108, allocations: 175.9 kB / 332.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002666/0.1083, allocations: 239 kB / 333.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002873/0.1086, allocations: 270.7 kB / 333.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.995e-05/0.1087, allocations: 40 kB / 333.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.07e-05/0.1088, allocations: 36 kB / 333.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.1089, allocations: 119.5 kB / 333.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002733/0.1092, allocations: 286.4 kB / 333.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005117/0.1097, allocations: 0.6151 MB / 334.4 MB, free: 13 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1097, allocations: 4 kB / 334.4 MB, free: 13 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.1097, allocations: 0 / 334.4 MB, free: 13 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1097, allocations: 0 / 334.4 MB, free: 13 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.001361/0.1111, allocations: 0.8572 MB / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1111, allocations: 12.03 kB / 335.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001423/0.1113, allocations: 103.8 kB / 335.4 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.959e-05/0.1114, allocations: 72.12 kB / 335.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000435/0.1118, allocations: 367.7 kB / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.1119, allocations: 37.69 kB / 335.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.914e-05/0.1119, allocations: 52.38 kB / 335.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008098/0.1128, allocations: 0.5034 MB / 336.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1128, allocations: 0 / 336.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.4e-05/0.1128, allocations: 20 kB / 336.4 MB, free: 10.87 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.1128, allocations: 12 kB / 336.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000637/0.1135, allocations: 344.6 kB / 336.8 MB, free: 10.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.1161, allocations: 1.736 MB / 338.5 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004296/0.1165, allocations: 257.1 kB / 338.8 MB, free: 8.414 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.1168, allocations: 145.9 kB / 338.9 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.1168, allocations: 8 kB / 338.9 MB, free: 8.258 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.1168, allocations: 42.41 kB / 339 MB, free: 8.207 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.613e-06/0.1168, allocations: 4 kB / 339 MB, free: 8.203 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001754/0.1186, allocations: 0.958 MB / 339.9 MB, free: 7.168 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.1186, allocations: 81.11 kB / 340 MB, free: 7.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/0.119, allocations: 385.6 kB / 340.4 MB, free: 6.684 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.1191, allocations: 29.7 kB / 340.4 MB, free: 6.648 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.1192, allocations: 303.3 kB / 340.7 MB, free: 6.348 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.858e-05/0.1193, allocations: 106.5 kB / 340.8 MB, free: 6.242 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.1194, allocations: 81.97 kB / 340.9 MB, free: 6.156 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1196, allocations: 354.8 kB / 341.2 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.1198, allocations: 96.83 kB / 341.3 MB, free: 5.707 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.12, allocations: 194.6 kB / 341.5 MB, free: 5.48 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004448/0.1205, allocations: 302 kB / 341.8 MB, free: 5.148 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1205, allocations: 8 kB / 341.8 MB, free: 5.141 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007796/0.1213, allocations: 442.3 kB / 342.3 MB, free: 4.695 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1213, allocations: 8.312 kB / 342.3 MB, free: 4.688 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.1213, allocations: 8 kB / 342.3 MB, free: 4.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003166/0.1216, allocations: 85.53 kB / 342.4 MB, free: 4.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002984/0.1219, allocations: 79.89 kB / 342.4 MB, free: 4.512 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002166/0.1241, allocations: 2.853 MB / 345.3 MB, free: 1.395 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.1244, allocations: 20.14 kB / 345.3 MB, free: 1.375 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.1244, allocations: 16 kB / 345.3 MB, free: 1.359 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.000194/0.1246, allocations: 169.7 kB / 345.5 MB, free: 1.184 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.212e-05/0.1247, allocations: 39.53 kB / 345.5 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.474e-05/0.1248, allocations: 43.47 kB / 345.6 MB, free: 1.102 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1248, allocations: 4 kB / 345.6 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.1248, allocations: 8.125 kB / 345.6 MB, free: 1.09 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1248, allocations: 7.984 kB / 345.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.1261, allocations: 0.9475 MB / 346.5 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1261, allocations: 0 / 346.5 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000175/0.1263, allocations: 47.97 kB / 346.6 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002734/0.1266, allocations: 81.58 kB / 346.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.1266, allocations: 7.984 kB / 346.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002088/0.1287, allocations: 2.849 MB / 349.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1287, allocations: 3.938 kB / 349.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008674/0.1296, allocations: 0.6168 MB / 350.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.938e-05/0.1297, allocations: 116.6 kB / 350.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.915e-05/0.1298, allocations: 11.98 kB / 350.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003154/0.1301, allocations: 31.98 kB / 350.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.779e-05/0.1302, allocations: 19.97 kB / 350.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.1302, allocations: 11.98 kB / 350.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002669/0.1304, allocations: 271.2 kB / 350.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1305, allocations: 0 / 350.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005405/0.131, allocations: 124 kB / 350.7 MB, free: 11.58 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.001464/0.1325, allocations: 1.166 MB / 351.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.1337, allocations: 0.5132 MB / 352.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1337, allocations: 4.062 kB / 352.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007953/0.1345, allocations: 381.3 kB / 352.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009745/0.1355, allocations: 65.61 kB / 352.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0085/0.144, allocations: 4.497 MB / 357.3 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006982/0.1448, allocations: 0.8509 MB / 358.2 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003307/0.1451, allocations: 43.28 kB / 358.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002963/0.1454, allocations: 175.4 kB / 358.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1454, allocations: 0 / 358.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03323/0.1787, allocations: 8.411 MB / 366.8 MB, free: 11.17 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002724/0.179, allocations: 231.8 kB / 367 MB, free: 10.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.213/2.392, allocations: 0 / 367 MB, free: 10.91 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > 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/jenkins1/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