Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.0008081/0.0008081, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008404/0.0008404, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8798/0.8798, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SeriesResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.016e-05/1.14e-05, allocations: 4.531 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002587/0.002598, allocations: 2.723 MB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.003611, allocations: 0.6699 MB / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.003749, allocations: 11.94 kB / 328 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.003902, allocations: 59.38 kB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.004034, allocations: 95.11 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.00426, allocations: 95.75 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003075/0.004568, allocations: 390 kB / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.004778, allocations: 109.8 kB / 328.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003322/0.00511, allocations: 219.5 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.005234, allocations: 115.7 kB / 329.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.939e-05/0.005274, allocations: 32 kB / 329.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.261e-05/0.005306, allocations: 32 kB / 329.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.994e-05/0.005346, allocations: 71.73 kB / 329.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.909e-05/0.005425, allocations: 115.7 kB / 329.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000311/0.005736, allocations: 394.6 kB / 329.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.005739, allocations: 0 / 329.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.005739, allocations: 0 / 329.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.005745, allocations: 8 kB / 329.7 MB, free: 10.79 MB / 298.7 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.0006582/0.006403, allocations: 0.5277 MB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.006449, allocations: 8.031 kB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.592e-05/0.006515, allocations: 70.72 kB / 330.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.575e-05/0.00657, allocations: 36.7 kB / 330.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.006839, allocations: 213.2 kB / 330.5 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.006858, allocations: 21.03 kB / 330.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.006898, allocations: 32.38 kB / 330.6 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003798/0.007278, allocations: 326 kB / 330.9 MB, free: 9.488 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.007291, allocations: 4.172 kB / 330.9 MB, free: 9.484 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.007317, allocations: 16.12 kB / 330.9 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.007325, allocations: 8 kB / 330.9 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002804/0.007605, allocations: 202.5 kB / 331.1 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009821/0.008588, allocations: 0.8598 MB / 332 MB, free: 8.336 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.008814, allocations: 158.6 kB / 332.2 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.845e-05/0.008912, allocations: 72.77 kB / 332.2 MB, free: 8.098 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.008929, allocations: 4.312 kB / 332.2 MB, free: 8.094 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.008955, allocations: 38.5 kB / 332.3 MB, free: 8.047 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.343e-06/0.008957, allocations: 0 / 332.3 MB, free: 8.047 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003622/0.009319, allocations: 220.3 kB / 332.5 MB, free: 7.828 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.009352, allocations: 59.41 kB / 332.5 MB, free: 7.758 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.009521, allocations: 211 kB / 332.7 MB, free: 7.543 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.00954, allocations: 25.7 kB / 332.8 MB, free: 7.512 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.009653, allocations: 196.4 kB / 333 MB, free: 7.316 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.694e-05/0.0097, allocations: 67.44 kB / 333 MB, free: 7.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.793e-05/0.009758, allocations: 41.7 kB / 333.1 MB, free: 7.203 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.00987, allocations: 334.8 kB / 333.4 MB, free: 6.867 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.009974, allocations: 63.91 kB / 333.5 MB, free: 6.805 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.01011, allocations: 121.9 kB / 333.6 MB, free: 6.664 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.01034, allocations: 189.8 kB / 333.8 MB, free: 6.457 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.01034, allocations: 0 / 333.8 MB, free: 6.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002885/0.01063, allocations: 241.3 kB / 334 MB, free: 6.215 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.01065, allocations: 8 kB / 334 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.01065, allocations: 3.938 kB / 334 MB, free: 6.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.01067, allocations: 7.984 kB / 334 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.01084, allocations: 55.97 kB / 334.1 MB, free: 6.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.01085, allocations: 11.92 kB / 334.1 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.305e-05/0.01092, allocations: 27.83 kB / 334.1 MB, free: 6.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.01093, allocations: 12 kB / 334.1 MB, free: 6.09 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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 9.371e-05/0.01103, allocations: 141.7 kB / 334.3 MB, free: 5.941 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.417e-05/0.01105, allocations: 23.88 kB / 334.3 MB, free: 5.918 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002491/0.0113, allocations: 187.4 kB / 334.5 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.0113, allocations: 4 kB / 334.5 MB, free: 5.719 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.01131, allocations: 0 / 334.5 MB, free: 5.719 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.01131, allocations: 0 / 334.5 MB, free: 5.719 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002153/0.01153, allocations: 268.6 kB / 334.7 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.01153, allocations: 0 / 334.7 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.01167, allocations: 55.95 kB / 334.8 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.01167, allocations: 7.922 kB / 334.8 MB, free: 5.352 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.01169, allocations: 15.94 kB / 334.8 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.01169, allocations: 0 / 334.8 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01169, allocations: 0 / 334.8 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003404/0.01203, allocations: 343.2 kB / 335.1 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.26e-05/0.01207, allocations: 27.78 kB / 335.2 MB, free: 4.957 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/0.01209, allocations: 4.062 kB / 335.2 MB, free: 4.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.022e-05/0.01217, allocations: 23.92 kB / 335.2 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.886e-05/0.01221, allocations: 7.984 kB / 335.2 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.01222, allocations: 4 kB / 335.2 MB, free: 4.918 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.346e-05/0.0123, allocations: 156.6 kB / 335.4 MB, free: 4.766 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0123, allocations: 3.938 kB / 335.4 MB, free: 4.762 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002188/0.01252, allocations: 75.78 kB / 335.4 MB, free: 4.688 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.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 (19): * Single equations (assignments): 19 * 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.0005392/0.01306, allocations: 0.8829 MB / 336.3 MB, free: 3.781 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002378/0.0133, allocations: 155.9 kB / 336.5 MB, free: 3.629 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.0133, allocations: 0 / 336.5 MB, free: 3.629 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.996e-05/0.01339, allocations: 67.89 kB / 336.5 MB, free: 3.562 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.01368, allocations: 31.94 kB / 336.6 MB, free: 3.531 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/0.01583, allocations: 2.571 MB / 339.1 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.642e-05/0.01593, allocations: 159.1 kB / 339.3 MB, free: 0.668 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.081e-05/0.01599, allocations: 25.92 kB / 339.3 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.1e-05/0.01608, allocations: 100.4 kB / 339.4 MB, free: 0.543 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01608, allocations: 4 kB / 339.4 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01757/0.03366, allocations: 5.318 MB / 344.7 MB, free: 11.37 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.859/6.893, allocations: 14.12 kB / 344.8 MB, free: 11.36 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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: 8.646268553100526]