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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009335/0.0009335, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004161/0.004161, allocations: 159.3 kB / 24.69 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8558/0.8558, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 298.5 MB, free: 3.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.295e-05/1.419e-05, allocations: 2.281 kB / 298.5 MB, free: 3.488 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.1279/0.1279, allocations: 4.718 MB / 303.2 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.13, allocations: 1.435 MB / 304.6 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003153/0.1303, allocations: 36.97 kB / 304.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003174/0.1306, allocations: 220.6 kB / 304.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004048/0.131, allocations: 207.3 kB / 305.1 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005899/0.1316, allocations: 396.2 kB / 305.5 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008351/0.1324, allocations: 1.155 MB / 306.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003834/0.1328, allocations: 320 kB / 306.9 MB, free: 11.53 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005552/0.1334, allocations: 0.5807 MB / 307.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000273/0.1336, allocations: 290.4 kB / 307.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.796e-05/0.1337, allocations: 83.75 kB / 307.9 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001405/0.1339, allocations: 101.2 kB / 308 MB, free: 11.17 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.743e-05/0.134, allocations: 217.8 kB / 308.2 MB, free: 11.02 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000193/0.1341, allocations: 321.5 kB / 308.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007921/0.1349, allocations: 1.159 MB / 309.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1349, allocations: 1.188 kB / 309.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1349, allocations: 4 kB / 309.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.622e-05/0.135, allocations: 0 / 309.7 MB, free: 10.38 MB / 282.7 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.001145/0.1361, allocations: 1.257 MB / 310.9 MB, free: 9.523 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1361, allocations: 14.42 kB / 310.9 MB, free: 9.52 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.1362, allocations: 152.9 kB / 311.1 MB, free: 9.418 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.1363, allocations: 128.9 kB / 311.2 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000671/0.137, allocations: 0.5717 MB / 311.8 MB, free: 8.984 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.655e-05/0.1371, allocations: 73.97 kB / 311.9 MB, free: 8.953 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.952e-05/0.1372, allocations: 100.3 kB / 312 MB, free: 8.918 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.1382, allocations: 1.096 MB / 313 MB, free: 8.203 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.1382, allocations: 7.156 kB / 313.1 MB, free: 8.199 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.268e-05/0.1383, allocations: 47.62 kB / 313.1 MB, free: 8.164 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.1383, allocations: 30.16 kB / 313.1 MB, free: 8.164 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007113/0.139, allocations: 0.5542 MB / 313.7 MB, free: 7.973 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.1414, allocations: 5.215 MB / 318.9 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.1418, allocations: 221.7 kB / 319.1 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.142, allocations: 143.7 kB / 319.3 MB, free: 3.281 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.856e-05/0.1421, allocations: 17.09 kB / 319.3 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.1421, allocations: 37.23 kB / 319.3 MB, free: 3.23 MB / 282.7 MB Notification: Performance of pre-optimization done (n=28): time 1.453e-06/0.1421, allocations: 1.188 kB / 319.3 MB, free: 3.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.002183/0.1443, allocations: 1.581 MB / 320.9 MB, free: 2.332 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.797e-05/0.1443, allocations: 89.89 kB / 321 MB, free: 2.23 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005043/0.1448, allocations: 0.6614 MB / 321.6 MB, free: 1.93 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.1448, allocations: 30.73 kB / 321.7 MB, free: 1.895 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.145, allocations: 0.6142 MB / 322.3 MB, free: 1.398 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.351e-05/0.1451, allocations: 151.2 kB / 322.4 MB, free: 1.281 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.1452, allocations: 135.1 kB / 322.6 MB, free: 1.207 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.954e-05/0.1453, allocations: 385.6 kB / 322.9 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.1454, allocations: 157.3 kB / 323.1 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.1457, allocations: 0.4956 MB / 323.6 MB, free: 312 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005953/0.1463, allocations: 0.6931 MB / 324.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.1463, allocations: 2.594 kB / 324.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00078/0.1471, allocations: 0.7212 MB / 325 MB, free: 15.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.1471, allocations: 10.09 kB / 325 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.1472, allocations: 11.09 kB / 325 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/0.1472, allocations: 18.09 kB / 325 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003652/0.1475, allocations: 197.8 kB / 325.2 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.106e-05/0.1476, allocations: 23.8 kB / 325.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002017/0.1478, allocations: 41.34 kB / 325.3 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.32e-05/0.1478, allocations: 36.92 kB / 325.3 MB, free: 15.33 MB / 298.7 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.0001989/0.148, allocations: 229.3 kB / 325.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.445e-05/0.1481, allocations: 84.16 kB / 325.6 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.319e-05/0.1482, allocations: 74.12 kB / 325.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1482, allocations: 4.906 kB / 325.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1482, allocations: 0 / 325.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1482, allocations: 4.25 kB / 325.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/0.1494, allocations: 1.238 MB / 327 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1494, allocations: 2.172 kB / 327 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.1497, allocations: 103.5 kB / 327.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.1497, allocations: 5.344 kB / 327.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.1497, allocations: 8.031 kB / 327.1 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1497, allocations: 6.5 kB / 327.1 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.1497, allocations: 10.62 kB / 327.1 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006402/0.1503, allocations: 0.6875 MB / 327.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.546e-05/0.1504, allocations: 71.7 kB / 327.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.1504, allocations: 11.09 kB / 327.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.1506, allocations: 27.02 kB / 327.9 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.1506, allocations: 33.94 kB / 327.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.1507, allocations: 14.22 kB / 327.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003155/0.151, allocations: 421.6 kB / 328.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.151, allocations: 0.7812 kB / 328.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004034/0.1514, allocations: 140.8 kB / 328.5 MB, free: 13.36 MB / 298.7 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.0008137/0.1522, allocations: 1.251 MB / 329.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004941/0.1527, allocations: 412.8 kB / 330.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1527, allocations: 5.375 kB / 330.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.1529, allocations: 147 kB / 330.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.1532, allocations: 82.3 kB / 330.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005179/0.1584, allocations: 6.014 MB / 336.4 MB, free: 7.242 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.1587, allocations: 417.3 kB / 336.8 MB, free: 6.805 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000168/0.1589, allocations: 87.86 kB / 336.9 MB, free: 6.719 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003015/0.1592, allocations: 396.3 kB / 337.3 MB, free: 6.332 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1592, allocations: 0 / 337.3 MB, free: 6.332 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02563/0.1848, allocations: 12.49 MB / 349.8 MB, free: 9.785 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.019/7.204, allocations: 15.94 kB / 349.8 MB, free: 9.77 MB / 314.7 MB " [Timeout remaining time 653] (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 --stepSize=0.0001 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.041694734245539]