Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",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.001048/0.001048, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001034/0.001034, allocations: 192 kB / 18.51 MB, free: 4.508 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.4/1.4, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001329/0.001329, allocations: 55.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.115, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007482/0.1225, allocations: 5.347 MB / 332.7 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002896/0.1254, allocations: 1.47 MB / 334.2 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009918/0.1264, allocations: 27.88 kB / 334.2 MB, free: 13.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008212/0.1273, allocations: 221.8 kB / 334.4 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001015/0.1283, allocations: 178 kB / 334.6 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.1295, allocations: 407.3 kB / 335 MB, free: 12.69 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001627/0.1312, allocations: 1.115 MB / 336.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007676/0.132, allocations: 480.2 kB / 336.6 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006112/0.1326, allocations: 394.3 kB / 337 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005749/0.1332, allocations: 433.5 kB / 337.4 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.1334, allocations: 80 kB / 337.5 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003255/0.1337, allocations: 104 kB / 337.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002796/0.134, allocations: 215.1 kB / 337.8 MB, free: 9.883 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005582/0.1346, allocations: 0.4932 MB / 338.3 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.1358, allocations: 1.117 MB / 339.4 MB, free: 8.266 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.1358, allocations: 4 kB / 339.4 MB, free: 8.262 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1358, allocations: 0 / 339.4 MB, free: 8.262 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.92e-05/0.1359, allocations: 4 kB / 339.4 MB, free: 8.258 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002326/0.1382, allocations: 1.305 MB / 340.7 MB, free: 6.898 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.1383, allocations: 8.031 kB / 340.7 MB, free: 6.891 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/0.1384, allocations: 160.2 kB / 340.9 MB, free: 6.727 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.1386, allocations: 126.5 kB / 341 MB, free: 6.602 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008493/0.1395, allocations: 0.6107 MB / 341.6 MB, free: 5.949 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.644e-05/0.1396, allocations: 77.94 kB / 341.7 MB, free: 5.875 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.1397, allocations: 96 kB / 341.8 MB, free: 5.781 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.1414, allocations: 1.034 MB / 342.8 MB, free: 4.621 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.934e-05/0.1414, allocations: 4 kB / 342.8 MB, free: 4.617 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.014e-05/0.1415, allocations: 44 kB / 342.9 MB, free: 4.574 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.609e-05/0.1415, allocations: 24 kB / 342.9 MB, free: 4.551 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.1426, allocations: 0.5617 MB / 343.5 MB, free: 3.984 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00541/0.148, allocations: 5.52 MB / 349 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005974/0.1486, allocations: 236.9 kB / 349.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003539/0.149, allocations: 169.6 kB / 349.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003021/0.1493, allocations: 85.11 kB / 349.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001114/0.1494, allocations: 42.48 kB / 349.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.324e-06/0.1495, allocations: 0 / 349.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004233/0.1537, allocations: 1.703 MB / 351.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.1538, allocations: 89.03 kB / 351.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007656/0.1545, allocations: 0.6294 MB / 351.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.1546, allocations: 37.7 kB / 352 MB, free: 11.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000487/0.1551, allocations: 0.5948 MB / 352.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.1553, allocations: 157.9 kB / 352.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.1554, allocations: 134.5 kB / 352.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.1556, allocations: 382.8 kB / 353.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003409/0.156, allocations: 153.9 kB / 353.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005849/0.1566, allocations: 0.4893 MB / 353.8 MB, free: 8.926 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.1576, allocations: 0.6921 MB / 354.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.1576, allocations: 4 kB / 354.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001256/0.1589, allocations: 0.7111 MB / 355.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.1589, allocations: 12 kB / 355.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.168e-05/0.1589, allocations: 12 kB / 355.3 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.389e-05/0.159, allocations: 19.98 kB / 355.3 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006799/0.1597, allocations: 200.2 kB / 355.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.904e-05/0.1597, allocations: 23.92 kB / 355.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003886/0.1601, allocations: 35.98 kB / 355.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.832e-05/0.1602, allocations: 40 kB / 355.6 MB, free: 7.012 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003224/0.1605, allocations: 221.5 kB / 355.8 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.1606, allocations: 79 kB / 355.9 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001326/0.1608, allocations: 78.53 kB / 356 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.1608, allocations: 11.94 kB / 356 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.1608, allocations: 0 / 356 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1608, allocations: 3.938 kB / 356 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.1629, allocations: 1.309 MB / 357.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.553e-06/0.1629, allocations: 4 kB / 357.3 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004584/0.1634, allocations: 112 kB / 357.4 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.1634, allocations: 3.938 kB / 357.4 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.1635, allocations: 19.94 kB / 357.4 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.1635, allocations: 3.984 kB / 357.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.1635, allocations: 7.938 kB / 357.4 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.1645, allocations: 0.7003 MB / 358.1 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.1647, allocations: 144.2 kB / 358.3 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.921e-05/0.1647, allocations: 15.97 kB / 358.3 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002974/0.1651, allocations: 23.98 kB / 358.3 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.245e-05/0.1651, allocations: 27.91 kB / 358.3 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.1652, allocations: 15.98 kB / 358.4 MB, free: 4.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004714/0.1656, allocations: 423 kB / 358.8 MB, free: 3.699 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1656, allocations: 4 kB / 358.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006493/0.1663, allocations: 136 kB / 358.9 MB, free: 3.562 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * 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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001327/0.1676, allocations: 1.25 MB / 360.2 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000858/0.1685, allocations: 449.4 kB / 360.6 MB, free: 1.832 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1685, allocations: 4.125 kB / 360.6 MB, free: 1.828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002859/0.1688, allocations: 165.6 kB / 360.8 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005399/0.1694, allocations: 71.3 kB / 360.8 MB, free: 1.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008217/0.1776, allocations: 6.346 MB / 367.2 MB, free: 10.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006576/0.1783, allocations: 1.008 MB / 368.2 MB, free: 9.734 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003124/0.1786, allocations: 90.02 kB / 368.3 MB, free: 9.645 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004343/0.179, allocations: 395.2 kB / 368.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of SimCode: time 1.112e-06/0.1791, allocations: 4 kB / 368.7 MB, free: 9.254 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2118/0.3909, allocations: 11.35 MB / 380 MB, free: 53.39 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.535/7.926, allocations: 13.39 kB / 380 MB, free: 53.39 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches