Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",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.001977/0.001977, allocations: 105 kB / 16.62 MB, free: 6.812 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.002173/0.002173, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.398/1.398, allocations: 222.9 MB / 241.2 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 45.25 kB / 300.2 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1409, allocations: 49.45 MB / 349.7 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.006371/0.1473, allocations: 2.923 MB / 352.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.1497, allocations: 0.6622 MB / 353.3 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005366/0.1503, allocations: 7.938 kB / 353.3 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004384/0.1507, allocations: 51.61 kB / 353.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003991/0.1512, allocations: 71.44 kB / 353.4 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004288/0.1516, allocations: 79.88 kB / 353.5 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004968/0.1521, allocations: 382.9 kB / 353.9 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003961/0.1525, allocations: 172.4 kB / 354 MB, free: 320 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.1528, allocations: 139.5 kB / 354.2 MB, free: 180 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.1531, allocations: 159.3 kB / 354.3 MB, free: 20 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.016e-05/0.1532, allocations: 32.05 kB / 354.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.422e-05/0.1532, allocations: 32 kB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.1534, allocations: 79.72 kB / 354.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.1536, allocations: 171.2 kB / 354.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004551/0.154, allocations: 382.8 kB / 355 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.154, allocations: 0 / 355 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.112e-06/0.1541, allocations: 0 / 355 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.1541, allocations: 3.938 kB / 355 MB, free: 15.33 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001152/0.1552, allocations: 0.6223 MB / 355.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1553, allocations: 12.03 kB / 355.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.81e-05/0.1554, allocations: 66.72 kB / 355.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.66e-05/0.1555, allocations: 40.47 kB / 355.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.1558, allocations: 259.8 kB / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.1558, allocations: 21.03 kB / 356 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.799e-05/0.1559, allocations: 36.38 kB / 356 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005818/0.1565, allocations: 290.1 kB / 356.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1565, allocations: 0 / 356.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/0.1566, allocations: 12 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.1566, allocations: 8 kB / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004786/0.1571, allocations: 210.5 kB / 356.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.1587, allocations: 1.03 MB / 357.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003537/0.1591, allocations: 167.2 kB / 357.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002939/0.1594, allocations: 132.7 kB / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.598e-05/0.1595, allocations: 8 kB / 357.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.1595, allocations: 30.56 kB / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.553e-06/0.1595, allocations: 0 / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006098/0.1601, allocations: 217.7 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.1602, allocations: 59.34 kB / 358.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002323/0.1604, allocations: 223 kB / 358.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.1605, allocations: 33.7 kB / 358.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.1606, allocations: 188 kB / 358.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.651e-05/0.1607, allocations: 78.92 kB / 358.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.427e-05/0.1608, allocations: 45.98 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.161, allocations: 334.8 kB / 359.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.1612, allocations: 68.52 kB / 359.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/0.1614, allocations: 147.3 kB / 359.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000392/0.1618, allocations: 221.2 kB / 359.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1618, allocations: 4 kB / 359.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005175/0.1624, allocations: 265 kB / 359.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1624, allocations: 4 kB / 359.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1624, allocations: 4 kB / 359.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.1624, allocations: 8.031 kB / 359.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003308/0.1628, allocations: 80.14 kB / 359.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.1628, allocations: 7.938 kB / 359.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.163, allocations: 27.73 kB / 359.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.163, allocations: 16 kB / 359.9 MB, free: 10.1 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.0001469/0.1632, allocations: 141.7 kB / 360 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.869e-05/0.1632, allocations: 23.75 kB / 360.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004559/0.1637, allocations: 203.3 kB / 360.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1637, allocations: 0 / 360.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1637, allocations: 0 / 360.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1637, allocations: 7.984 kB / 360.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008986/0.1646, allocations: 0.5967 MB / 360.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.1646, allocations: 0 / 360.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002977/0.1649, allocations: 59.97 kB / 360.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.165, allocations: 4 kB / 360.9 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.165, allocations: 7.984 kB / 360.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.165, allocations: 7.984 kB / 360.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.165, allocations: 3.938 kB / 360.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006563/0.1657, allocations: 385.1 kB / 361.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.97e-05/0.1658, allocations: 92.91 kB / 361.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.794e-05/0.1658, allocations: 8.062 kB / 361.4 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.166, allocations: 16.11 kB / 361.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.411e-05/0.1661, allocations: 15.98 kB / 361.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.1661, allocations: 8 kB / 361.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001486/0.1662, allocations: 156.6 kB / 361.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1662, allocations: 0 / 361.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003675/0.1666, allocations: 79.69 kB / 361.7 MB, free: 8.191 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.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 (21): * Single equations (assignments): 21 * 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.000941/0.1676, allocations: 0.9153 MB / 362.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004456/0.168, allocations: 179.8 kB / 362.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.168, allocations: 4.438 kB / 362.8 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.1682, allocations: 83.89 kB / 362.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004537/0.1687, allocations: 26.36 kB / 362.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00407/0.1728, allocations: 2.928 MB / 365.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004166/0.1732, allocations: 0.7713 MB / 366.6 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001487/0.1734, allocations: 25.94 kB / 366.6 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.1735, allocations: 91.41 kB / 366.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1735, allocations: 3.938 kB / 366.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2444/0.418, allocations: 4.403 MB / 371.1 MB, free: 25.98 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001824/0.4182, allocations: 207.7 kB / 371.3 MB, free: 25.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.038/2.456, allocations: 3.844 kB / 371.3 MB, free: 25.73 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches