Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_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.001295/0.001295, allocations: 103.8 kB / 16.92 MB, free: 6.145 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.001158/0.001158, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.546/1.546, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 47.73 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1456, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.007652/0.1533, allocations: 4.085 MB / 354.3 MB, free: 212 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002425/0.1558, allocations: 0.8723 MB / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007555/0.1566, allocations: 8 kB / 355.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000446/0.1571, allocations: 99.06 kB / 355.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007629/0.1578, allocations: 174.4 kB / 355.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000533/0.1584, allocations: 139.8 kB / 355.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008147/0.1592, allocations: 0.6694 MB / 356.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004165/0.1596, allocations: 203 kB / 356.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000354/0.16, allocations: 262.9 kB / 356.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003848/0.1604, allocations: 282.7 kB / 356.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.901e-05/0.1605, allocations: 56 kB / 357 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.1606, allocations: 56 kB / 357 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.1608, allocations: 135.4 kB / 357.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003534/0.1611, allocations: 306.5 kB / 357.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007597/0.1619, allocations: 0.6346 MB / 358.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.279e-06/0.1619, allocations: 0 / 358.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1619, allocations: 3.938 kB / 358.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.162, allocations: 0 / 358.1 MB, free: 12.32 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001459/0.1634, allocations: 0.8611 MB / 359 MB, free: 11.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.1635, allocations: 8.031 kB / 359 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000161/0.1636, allocations: 111.8 kB / 359.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.1637, allocations: 64.19 kB / 359.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005297/0.1643, allocations: 371.6 kB / 359.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.737e-05/0.1643, allocations: 45.69 kB / 359.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.1645, allocations: 56.28 kB / 359.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000943/0.1654, allocations: 0.4957 MB / 360.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.1654, allocations: 0 / 360.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-05/0.1655, allocations: 28 kB / 360.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.1655, allocations: 12 kB / 360.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007471/0.1663, allocations: 348.6 kB / 360.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002902/0.1692, allocations: 1.721 MB / 362.2 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005637/0.1698, allocations: 265 kB / 362.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.1701, allocations: 141.6 kB / 362.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.1701, allocations: 8 kB / 362.6 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.055e-05/0.1701, allocations: 38.5 kB / 362.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.443e-06/0.1702, allocations: 3.938 kB / 362.7 MB, free: 7.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002193/0.1724, allocations: 0.9604 MB / 363.6 MB, free: 6.484 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/0.1724, allocations: 81.11 kB / 363.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005107/0.173, allocations: 389.6 kB / 364.1 MB, free: 5.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.173, allocations: 37.7 kB / 364.1 MB, free: 5.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.1733, allocations: 291.3 kB / 364.4 MB, free: 5.656 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.1734, allocations: 110.5 kB / 364.5 MB, free: 5.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.1736, allocations: 78.03 kB / 364.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000271/0.1738, allocations: 346.8 kB / 364.9 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002491/0.1741, allocations: 96.83 kB / 365 MB, free: 5.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003228/0.1744, allocations: 206.6 kB / 365.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005766/0.175, allocations: 308.3 kB / 365.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.175, allocations: 0 / 365.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009244/0.176, allocations: 449.5 kB / 366 MB, free: 4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.176, allocations: 4 kB / 366 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.176, allocations: 4 kB / 366 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003587/0.1764, allocations: 85.62 kB / 366.1 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003305/0.1767, allocations: 79.89 kB / 366.1 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002863/0.1796, allocations: 3.134 MB / 369.3 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.1799, allocations: 19.91 kB / 369.3 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.1799, allocations: 19.94 kB / 369.3 MB, free: 388 kB / 302.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.0002282/0.1801, allocations: 165.7 kB / 369.5 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.77e-05/0.1802, allocations: 43.47 kB / 369.5 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.886e-05/0.1803, allocations: 47.47 kB / 369.6 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1803, allocations: 4 kB / 369.6 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.1803, allocations: 4.062 kB / 369.6 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1804, allocations: 3.984 kB / 369.6 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.28/0.4604, allocations: 0.9301 MB / 370.5 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.4604, allocations: 3.844 kB / 370.5 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.4606, allocations: 43.86 kB / 370.5 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003253/0.461, allocations: 80.38 kB / 370.6 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.461, allocations: 10.25 kB / 370.6 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002192/0.4632, allocations: 3.127 MB / 373.8 MB, free: 21.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.4632, allocations: 8.203 kB / 373.8 MB, free: 21.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.4643, allocations: 0.6132 MB / 374.4 MB, free: 21.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.4645, allocations: 119.5 kB / 374.5 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.206e-05/0.4645, allocations: 5.938 kB / 374.5 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003659/0.4649, allocations: 30.8 kB / 374.5 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.465, allocations: 24.23 kB / 374.6 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.748e-05/0.4651, allocations: 15.59 kB / 374.6 MB, free: 21.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003927/0.4655, allocations: 274.5 kB / 374.8 MB, free: 21.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4655, allocations: 0 / 374.8 MB, free: 21.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008673/0.4663, allocations: 118.5 kB / 375 MB, free: 21.5 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.001256/0.4676, allocations: 1.163 MB / 376.1 MB, free: 20.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.4686, allocations: 0.5326 MB / 376.7 MB, free: 20.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.4686, allocations: 1.375 kB / 376.7 MB, free: 20.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000588/0.4692, allocations: 377.6 kB / 377 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006578/0.4699, allocations: 58.89 kB / 377.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005974/0.4759, allocations: 4.292 MB / 381.4 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.4763, allocations: 0.8471 MB / 382.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002095/0.4765, allocations: 43.66 kB / 382.3 MB, free: 16.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.4767, allocations: 169.6 kB / 382.4 MB, free: 16.49 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4767, allocations: 0 / 382.4 MB, free: 16.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03736/0.5141, allocations: 8.772 MB / 391.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.677/10.19, allocations: 8.297 kB / 391.2 MB, free: 13.85 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches