Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_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.001461/0.001461, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001632/0.001632, allocations: 195.1 kB / 17.42 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.47/1.47, allocations: 222.9 MB / 241.1 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 52.42 kB / 300.1 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1323, allocations: 49.45 MB / 349.5 MB, free: 4.516 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.008559/0.1409, allocations: 5.346 MB / 354.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003487/0.1445, allocations: 1.426 MB / 356.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001366/0.1459, allocations: 27.88 kB / 356.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008666/0.1469, allocations: 158.6 kB / 356.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001094/0.148, allocations: 158.6 kB / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.1492, allocations: 335.6 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00168/0.1509, allocations: 1.072 MB / 358 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008064/0.1517, allocations: 431.4 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007019/0.1524, allocations: 366.3 kB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006744/0.1531, allocations: 425.5 kB / 359.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001803/0.1533, allocations: 56 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002921/0.1536, allocations: 72 kB / 359.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002046/0.1538, allocations: 187.1 kB / 359.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005862/0.1544, allocations: 481 kB / 360 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009428/0.1554, allocations: 1.027 MB / 361 MB, free: 8.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.1554, allocations: 3.938 kB / 361 MB, free: 8.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.1554, allocations: 0 / 361 MB, free: 8.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.1554, allocations: 0 / 361 MB, free: 8.922 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001946/0.1573, allocations: 1.309 MB / 362.3 MB, free: 7.559 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.1574, allocations: 12.03 kB / 362.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001588/0.1576, allocations: 148.2 kB / 362.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001664/0.1577, allocations: 126.5 kB / 362.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008584/0.1586, allocations: 0.6185 MB / 363.2 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.205e-05/0.1587, allocations: 77.94 kB / 363.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.1588, allocations: 96 kB / 363.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001632/0.1604, allocations: 1.027 MB / 364.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/0.1605, allocations: 7.938 kB / 364.4 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.418e-05/0.1606, allocations: 44 kB / 364.5 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.272e-05/0.1606, allocations: 32 kB / 364.5 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.1617, allocations: 0.5578 MB / 365.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1882/0.3499, allocations: 5.505 MB / 370.6 MB, free: 21.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000601/0.3506, allocations: 235 kB / 370.8 MB, free: 21.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003158/0.3509, allocations: 155.7 kB / 371 MB, free: 21.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001653/0.3511, allocations: 88.72 kB / 371 MB, free: 21.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.3511, allocations: 41.28 kB / 371.1 MB, free: 21.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.825e-06/0.3511, allocations: 0 / 371.1 MB, free: 21.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004081/0.3552, allocations: 1.718 MB / 372.8 MB, free: 20.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.3553, allocations: 81.17 kB / 372.9 MB, free: 20.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.3563, allocations: 0.6372 MB / 373.5 MB, free: 20.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.345e-05/0.3564, allocations: 35.38 kB / 373.6 MB, free: 20.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005549/0.3569, allocations: 0.6009 MB / 374.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.3571, allocations: 145.2 kB / 374.3 MB, free: 19.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002803/0.3574, allocations: 137.4 kB / 374.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3575, allocations: 383 kB / 374.8 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003541/0.3579, allocations: 152.8 kB / 375 MB, free: 19.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000602/0.3585, allocations: 0.4899 MB / 375.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009389/0.3594, allocations: 0.6915 MB / 376.1 MB, free: 18.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.076e-06/0.3595, allocations: 2.688 kB / 376.1 MB, free: 18.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001279/0.3608, allocations: 0.7201 MB / 376.9 MB, free: 18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.3608, allocations: 13.56 kB / 376.9 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.3608, allocations: 11 kB / 376.9 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.433e-05/0.3609, allocations: 23.53 kB / 376.9 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006273/0.3615, allocations: 194 kB / 377.1 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.736e-05/0.3615, allocations: 26.91 kB / 377.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.3619, allocations: 33.3 kB / 377.2 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.463e-05/0.362, allocations: 43.27 kB / 377.2 MB, free: 17.94 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.0003008/0.3623, allocations: 226.8 kB / 377.4 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.3624, allocations: 83.52 kB / 377.5 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.3625, allocations: 77.66 kB / 377.6 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.3625, allocations: 3.906 kB / 377.6 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.3625, allocations: 5.922 kB / 377.6 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.3626, allocations: 3.234 kB / 377.6 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002409/0.365, allocations: 1.329 MB / 378.9 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.365, allocations: 2.656 kB / 378.9 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004883/0.3655, allocations: 105.1 kB / 379 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.3655, allocations: 3.406 kB / 379 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.3655, allocations: 10.09 kB / 379 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.3655, allocations: 3.438 kB / 379 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.3656, allocations: 2.703 kB / 379 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.3666, allocations: 0.6956 MB / 379.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.3667, allocations: 146 kB / 379.9 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.413e-05/0.3668, allocations: 8.531 kB / 379.9 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.3671, allocations: 24.48 kB / 379.9 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.298e-05/0.3672, allocations: 35.59 kB / 379.9 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.3672, allocations: 15.06 kB / 380 MB, free: 16.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005036/0.3677, allocations: 426.5 kB / 380.4 MB, free: 16.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3677, allocations: 0 / 380.4 MB, free: 16.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007595/0.3685, allocations: 136.7 kB / 380.5 MB, free: 16.1 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.001123/0.3696, allocations: 1.249 MB / 381.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008399/0.3705, allocations: 440 kB / 382.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3705, allocations: 0 / 382.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002809/0.3708, allocations: 158.3 kB / 382.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005589/0.3713, allocations: 70.81 kB / 382.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00774/0.3791, allocations: 6.769 MB / 389.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.3796, allocations: 1.004 MB / 390.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00033/0.3799, allocations: 91.91 kB / 390.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003777/0.3803, allocations: 389.9 kB / 390.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of SimCode: time 1.303e-06/0.3803, allocations: 0 / 390.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.304/0.6843, allocations: 10.95 MB / 401.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002438/0.6846, allocations: 203.5 kB / 401.8 MB, free: 2.211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.26/2.945, allocations: 0 / 401.8 MB, free: 2.211 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches