Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] 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.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 47.92 kB / 365.7 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09658/0.09803, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.00451/0.1025, allocations: 2.908 MB / 420.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.1038, allocations: 0.6816 MB / 421.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.104, allocations: 4 kB / 421.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000226/0.1042, allocations: 59.44 kB / 421.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001773/0.1044, allocations: 91.19 kB / 421.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002828/0.1047, allocations: 91.83 kB / 421.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004177/0.1051, allocations: 374.4 kB / 422 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002438/0.1053, allocations: 105.4 kB / 422.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.1055, allocations: 143.5 kB / 422.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002164/0.1057, allocations: 167.2 kB / 422.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.465e-05/0.1058, allocations: 32 kB / 422.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.818e-05/0.1058, allocations: 32 kB / 422.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.951e-05/0.1059, allocations: 75.75 kB / 422.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.1061, allocations: 167.2 kB / 422.7 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004437/0.1065, allocations: 382.4 kB / 423.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1065, allocations: 0 / 423.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1065, allocations: 0 / 423.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.1065, allocations: 0 / 423.1 MB, free: 7.293 MB / 350.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.001069/0.1076, allocations: 0.6196 MB / 423.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1077, allocations: 8.031 kB / 423.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.922e-05/0.1077, allocations: 70.72 kB / 423.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.374e-05/0.1078, allocations: 40.64 kB / 423.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004023/0.1082, allocations: 260 kB / 424.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.1083, allocations: 36.91 kB / 424.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/0.1083, allocations: 36.31 kB / 424.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005318/0.1088, allocations: 282.1 kB / 424.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1089, allocations: 4 kB / 424.4 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.001e-05/0.1089, allocations: 12 kB / 424.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1089, allocations: 8 kB / 424.4 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004469/0.1093, allocations: 202.5 kB / 424.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001594/0.1109, allocations: 0.9716 MB / 425.6 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003483/0.1113, allocations: 158.6 kB / 425.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.1115, allocations: 72.81 kB / 425.8 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.1115, allocations: 0 / 425.8 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.1115, allocations: 34.56 kB / 425.9 MB, free: 4.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 9.72e-07/0.1115, allocations: 0 / 425.9 MB, free: 4.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006121/0.1121, allocations: 221.7 kB / 426.1 MB, free: 4.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.1122, allocations: 51.41 kB / 426.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002495/0.1124, allocations: 214.9 kB / 426.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.1124, allocations: 25.7 kB / 426.4 MB, free: 3.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.1126, allocations: 188.4 kB / 426.5 MB, free: 3.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.511e-05/0.1127, allocations: 75.41 kB / 426.6 MB, free: 3.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/0.1128, allocations: 41.7 kB / 426.7 MB, free: 3.453 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.1129, allocations: 334.8 kB / 427 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.1131, allocations: 63.95 kB / 427 MB, free: 3.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.1133, allocations: 110 kB / 427.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003643/0.1137, allocations: 193.7 kB / 427.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.1137, allocations: 3.938 kB / 427.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004574/0.1141, allocations: 245.3 kB / 427.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1141, allocations: 6.188 kB / 427.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1142, allocations: 7.984 kB / 427.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1142, allocations: 0 / 427.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.1144, allocations: 63.89 kB / 427.7 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.1144, allocations: 4 kB / 427.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.1146, allocations: 23.84 kB / 427.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.1146, allocations: 8 kB / 427.7 MB, free: 2.355 MB / 350.1 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 0.0001492/0.1148, allocations: 158.4 kB / 427.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.482e-05/0.1148, allocations: 19.86 kB / 427.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/0.1152, allocations: 185.7 kB / 428.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1152, allocations: 3.984 kB / 428.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1152, allocations: 3.938 kB / 428.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1152, allocations: 0 / 428.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003757/0.1156, allocations: 321.4 kB / 428.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.1156, allocations: 7.984 kB / 428.4 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002727/0.1159, allocations: 47.97 kB / 428.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.1159, allocations: 0 / 428.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.1159, allocations: 11.94 kB / 428.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1159, allocations: 0 / 428.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1159, allocations: 0 / 428.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006162/0.1165, allocations: 355.2 kB / 428.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.789e-05/0.1166, allocations: 97.02 kB / 428.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.1166, allocations: 7.984 kB / 428.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.1168, allocations: 15.98 kB / 428.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.806e-05/0.1168, allocations: 11.98 kB / 428.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.1168, allocations: 4 kB / 428.9 MB, free: 1.035 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00016/0.117, allocations: 152.4 kB / 429.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.117, allocations: 4 kB / 429.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.1173, allocations: 79.78 kB / 429.2 MB, free: 0.8047 MB / 350.1 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.0009643/0.1183, allocations: 0.8899 MB / 430 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003817/0.1187, allocations: 159.8 kB / 430.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1187, allocations: 0 / 430.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.1188, allocations: 67.91 kB / 430.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.1191, allocations: 27.98 kB / 430.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/0.1227, allocations: 2.712 MB / 433 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.1232, allocations: 0.7671 MB / 433.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.532e-05/0.1232, allocations: 13.95 kB / 433.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.1234, allocations: 99.39 kB / 433.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1234, allocations: 4 kB / 433.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02985/0.1532, allocations: 4.565 MB / 438.5 MB, free: 7.449 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.344, allocations: 2.516 kB / 438.5 MB, free: 7.449 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 11.319084755145013]