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.001121/0.001125, allocations: 107.6 kB / 16.51 MB, free: 6.707 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.001087/0.001087, allocations: 194.5 kB / 17.43 MB, free: 6.066 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.483/1.483, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 44.11 kB / 300.1 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1294, allocations: 49.45 MB / 349.5 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.006612/0.1361, allocations: 4.103 MB / 353.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002541/0.1387, allocations: 0.8724 MB / 354.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006909/0.1394, allocations: 11.94 kB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004829/0.1399, allocations: 67.45 kB / 354.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009545/0.1409, allocations: 154.8 kB / 354.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000633/0.1416, allocations: 123.8 kB / 354.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001302/0.1429, allocations: 0.6381 MB / 355.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004703/0.1434, allocations: 183.9 kB / 355.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004877/0.1439, allocations: 239 kB / 355.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000432/0.1443, allocations: 282.7 kB / 356.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.988e-05/0.1444, allocations: 36 kB / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.1446, allocations: 40 kB / 356.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.1447, allocations: 111.4 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000388/0.1451, allocations: 290.5 kB / 356.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007535/0.1459, allocations: 0.6073 MB / 357.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1459, allocations: 0 / 357.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1459, allocations: 0 / 357.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.1459, allocations: 0 / 357.2 MB, free: 12.99 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.002043/0.148, allocations: 0.8689 MB / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.1481, allocations: 8.031 kB / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002044/0.1483, allocations: 107.8 kB / 358.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.1484, allocations: 64.19 kB / 358.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006325/0.1491, allocations: 367.7 kB / 358.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.193e-05/0.1491, allocations: 41.67 kB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.1493, allocations: 56.28 kB / 358.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.1505, allocations: 0.4995 MB / 359.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.1506, allocations: 0 / 359.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.845e-05/0.1506, allocations: 24 kB / 359.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.1507, allocations: 12 kB / 359.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009151/0.1516, allocations: 344.6 kB / 359.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00394/0.1555, allocations: 1.721 MB / 361.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006764/0.1562, allocations: 276.9 kB / 361.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000381/0.1566, allocations: 145.5 kB / 361.7 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.1567, allocations: 7.984 kB / 361.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.1567, allocations: 46.5 kB / 361.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.204e-06/0.1568, allocations: 0 / 361.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002587/0.1593, allocations: 0.9565 MB / 362.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.1594, allocations: 85.05 kB / 362.8 MB, free: 7.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007316/0.1602, allocations: 381.6 kB / 363.2 MB, free: 6.672 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.1602, allocations: 37.7 kB / 363.2 MB, free: 6.629 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/0.1605, allocations: 291.3 kB / 363.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.1606, allocations: 114.4 kB / 363.6 MB, free: 6.223 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.1608, allocations: 74.05 kB / 363.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.161, allocations: 350.8 kB / 364 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.1613, allocations: 100.8 kB / 364.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004116/0.1617, allocations: 206.6 kB / 364.3 MB, free: 5.453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007145/0.1624, allocations: 302.3 kB / 364.6 MB, free: 5.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1625, allocations: 0 / 364.6 MB, free: 5.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001233/0.1637, allocations: 451.5 kB / 365.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.1637, allocations: 4 kB / 365.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.1638, allocations: 7.984 kB / 365.1 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004757/0.1642, allocations: 85.91 kB / 365.2 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004778/0.1647, allocations: 75.91 kB / 365.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003002/0.1677, allocations: 2.853 MB / 368.1 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/0.168, allocations: 16 kB / 368.1 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.1681, allocations: 16 kB / 368.1 MB, free: 1.352 MB / 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.0002222/0.1683, allocations: 169.7 kB / 368.3 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.599e-05/0.1684, allocations: 43.44 kB / 368.3 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.646e-05/0.1685, allocations: 51.45 kB / 368.4 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.391e-06/0.1685, allocations: 4 kB / 368.4 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.1685, allocations: 3.938 kB / 368.4 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.1685, allocations: 0 / 368.4 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/0.1699, allocations: 0.9323 MB / 369.3 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.1699, allocations: 8.109 kB / 369.3 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.1701, allocations: 51.92 kB / 369.4 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2451/0.4152, allocations: 78.83 kB / 369.5 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.735e-05/0.4153, allocations: 6.734 kB / 369.5 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002439/0.4178, allocations: 2.847 MB / 372.3 MB, free: 22.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4178, allocations: 0.875 kB / 372.3 MB, free: 22.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.4191, allocations: 0.6085 MB / 372.9 MB, free: 22.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001741/0.4193, allocations: 123.5 kB / 373.1 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.544e-05/0.4193, allocations: 9.875 kB / 373.1 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004025/0.4197, allocations: 35.12 kB / 373.1 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.4199, allocations: 22.33 kB / 373.1 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.218e-05/0.4199, allocations: 16.7 kB / 373.1 MB, free: 22.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004118/0.4203, allocations: 271.1 kB / 373.4 MB, free: 22 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4203, allocations: 0 / 373.4 MB, free: 22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007666/0.4211, allocations: 120.7 kB / 373.5 MB, free: 22 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.001466/0.4226, allocations: 1.174 MB / 374.7 MB, free: 21.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.4237, allocations: 0.5048 MB / 375.2 MB, free: 21.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4237, allocations: 0.5938 kB / 375.2 MB, free: 21.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00064/0.4244, allocations: 387.3 kB / 375.6 MB, free: 20.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006679/0.425, allocations: 59.98 kB / 375.6 MB, free: 20.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006503/0.4316, allocations: 4.499 MB / 380.1 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.432, allocations: 0.8436 MB / 381 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002454/0.4322, allocations: 43.64 kB / 381 MB, free: 17.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.4325, allocations: 179.7 kB / 381.2 MB, free: 17.02 MB / 302.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4325, allocations: 0 / 381.2 MB, free: 17.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.4597, allocations: 8.411 MB / 389.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.4599, allocations: 235.7 kB / 389.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.144/2.604, allocations: 1.188 kB / 389.8 MB, free: 14.58 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