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.0008121/0.0008121, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008113/0.0008113, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8651/0.8651, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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 1.062e-06/1.062e-06, allocations: 0 / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.06e-05/1.166e-05, allocations: 2.281 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002441/0.002453, allocations: 2.679 MB / 321.1 MB, free: 3.641 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00123/0.003683, allocations: 0.6426 MB / 321.8 MB, free: 2.992 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.003825, allocations: 8 kB / 321.8 MB, free: 2.984 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.003997, allocations: 63.36 kB / 321.8 MB, free: 2.922 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.004126, allocations: 99.06 kB / 321.9 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002097/0.004335, allocations: 91.81 kB / 322 MB, free: 2.734 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002498/0.004585, allocations: 394.2 kB / 322.4 MB, free: 2.348 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.00476, allocations: 105.8 kB / 322.5 MB, free: 2.242 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.004943, allocations: 211.5 kB / 322.7 MB, free: 2.035 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.005057, allocations: 115.7 kB / 322.8 MB, free: 1.922 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/0.005097, allocations: 32 kB / 322.9 MB, free: 1.891 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.539e-05/0.005132, allocations: 32 kB / 322.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.722e-05/0.005179, allocations: 71.73 kB / 323 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.746e-05/0.005257, allocations: 119.7 kB / 323.1 MB, free: 1.672 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002909/0.005548, allocations: 394.7 kB / 323.5 MB, free: 1.285 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.005551, allocations: 0 / 323.5 MB, free: 1.285 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.005552, allocations: 0 / 323.5 MB, free: 1.285 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.005557, allocations: 0 / 323.5 MB, free: 1.285 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006496/0.006206, allocations: 0.5358 MB / 324 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.006253, allocations: 8.922 kB / 324 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.651e-05/0.006309, allocations: 78.72 kB / 324.1 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.81e-05/0.006357, allocations: 40.7 kB / 324.1 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.006592, allocations: 209.2 kB / 324.3 MB, free: 368 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.006608, allocations: 21.03 kB / 324.4 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.592e-05/0.006644, allocations: 32.38 kB / 324.4 MB, free: 312 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.007027, allocations: 326 kB / 324.7 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.00704, allocations: 192 / 324.7 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.529e-05/0.007065, allocations: 16.12 kB / 324.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.007079, allocations: 8 kB / 324.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002707/0.00735, allocations: 206.5 kB / 324.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008758/0.008226, allocations: 0.8559 MB / 325.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.008428, allocations: 158.6 kB / 325.9 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.047e-05/0.008518, allocations: 73.12 kB / 326 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.394e-05/0.008532, allocations: 0 / 326 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.223e-05/0.008554, allocations: 42.41 kB / 326.1 MB, free: 14.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 8.31e-07/0.008555, allocations: 0 / 326.1 MB, free: 14.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003177/0.008873, allocations: 220.4 kB / 326.3 MB, free: 14.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.456e-05/0.008897, allocations: 51.41 kB / 326.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.009027, allocations: 207.1 kB / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.00905, allocations: 37.58 kB / 326.6 MB, free: 13.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.006e-05/0.00913, allocations: 192.4 kB / 326.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.77e-05/0.009167, allocations: 79.31 kB / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.009214, allocations: 41.7 kB / 326.9 MB, free: 13.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.635e-05/0.00929, allocations: 334.8 kB / 327.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.868e-05/0.009379, allocations: 59.97 kB / 327.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.009488, allocations: 121.9 kB / 327.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.009683, allocations: 181.8 kB / 327.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.009685, allocations: 0 / 327.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002553/0.00994, allocations: 249.2 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.009952, allocations: 7.938 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.009958, allocations: 4 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.009969, allocations: 4 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.01012, allocations: 51.97 kB / 327.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.01013, allocations: 7.938 kB / 327.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.185e-05/0.0102, allocations: 23.88 kB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.01021, allocations: 16.12 kB / 327.9 MB, free: 12.58 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 8.208e-05/0.01029, allocations: 137.8 kB / 328 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.01032, allocations: 27.8 kB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002246/0.01054, allocations: 187.4 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.01054, allocations: 0 / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.01055, allocations: 4 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.01055, allocations: 3.938 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001971/0.01075, allocations: 264.5 kB / 328.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.01075, allocations: 4 kB / 328.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.01088, allocations: 55.91 kB / 328.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.01089, allocations: 7.938 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.0109, allocations: 8 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.0109, allocations: 0 / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.0109, allocations: 0 / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005509/0.01146, allocations: 343.9 kB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.21e-05/0.01148, allocations: 27.73 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.0115, allocations: 8.062 kB / 329 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.286e-05/0.01158, allocations: 19.98 kB / 329 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.701e-05/0.01162, allocations: 11.97 kB / 329 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/0.01162, allocations: 4 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.056e-05/0.0117, allocations: 156.3 kB / 329.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0117, allocations: 0 / 329.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001951/0.0119, allocations: 75.78 kB / 329.2 MB, free: 11.19 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.0004929/0.01239, allocations: 0.8865 MB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002244/0.01262, allocations: 156 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01262, allocations: 0 / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.259e-05/0.0127, allocations: 71.84 kB / 330.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.01294, allocations: 32.23 kB / 330.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.01501, allocations: 2.574 MB / 332.9 MB, free: 7.332 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.77e-05/0.01511, allocations: 159.1 kB / 333.1 MB, free: 7.156 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.845e-05/0.01516, allocations: 17.95 kB / 333.1 MB, free: 7.141 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.518e-05/0.01526, allocations: 96.47 kB / 333.2 MB, free: 7.047 MB / 298.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01526, allocations: 0 / 333.2 MB, free: 7.047 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01744/0.0327, allocations: 5.332 MB / 338.5 MB, free: 1.863 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.977/7.009, allocations: 7.547 kB / 338.5 MB, free: 1.859 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.797344163060188]