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.001552/0.001552, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001555/0.001555, allocations: 208.9 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.408/1.408, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00155/0.00155, allocations: 48.06 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2696, allocations: 53.36 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004322/0.274, allocations: 2.719 MB / 433.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.2753, allocations: 0.6794 MB / 434.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.2754, allocations: 7.938 kB / 434.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.2756, allocations: 55.44 kB / 434.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.2758, allocations: 87.19 kB / 434.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.2761, allocations: 95.83 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004185/0.2765, allocations: 370.5 kB / 435.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000252/0.2767, allocations: 117.8 kB / 435.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002934/0.277, allocations: 155.4 kB / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.2772, allocations: 155.3 kB / 435.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.2773, allocations: 32 kB / 435.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.058e-05/0.2773, allocations: 32 kB / 435.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.434e-05/0.2774, allocations: 75.75 kB / 435.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000146/0.2776, allocations: 135.4 kB / 435.8 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004399/0.278, allocations: 386.3 kB / 436.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.278, allocations: 7.984 kB / 436.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.278, allocations: 0 / 436.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.278, allocations: 4 kB / 436.2 MB, free: 1.531 MB / 334.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.0009591/0.279, allocations: 0.5314 MB / 436.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.279, allocations: 12.03 kB / 436.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.82e-05/0.2791, allocations: 66.72 kB / 436.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.575e-05/0.2792, allocations: 44.7 kB / 436.8 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.2795, allocations: 206.7 kB / 437 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.2795, allocations: 29.03 kB / 437 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.149e-05/0.2796, allocations: 36.25 kB / 437.1 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005786/0.2802, allocations: 325.6 kB / 437.4 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.2802, allocations: 0 / 437.4 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.2802, allocations: 16 kB / 437.4 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.2802, allocations: 8 kB / 437.4 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004705/0.2807, allocations: 206.6 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.2822, allocations: 0.8667 MB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003191/0.2825, allocations: 150.6 kB / 438.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.2827, allocations: 72.81 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.2827, allocations: 4 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.2827, allocations: 34.56 kB / 438.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.323e-06/0.2827, allocations: 0 / 438.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005521/0.2833, allocations: 221.6 kB / 439 MB, free: 14.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.2833, allocations: 55.41 kB / 439 MB, free: 14.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002285/0.2836, allocations: 210.7 kB / 439.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.2836, allocations: 33.69 kB / 439.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.2837, allocations: 196.4 kB / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.796e-05/0.2838, allocations: 67.42 kB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.432e-05/0.2839, allocations: 45.7 kB / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.284, allocations: 326.8 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.2842, allocations: 67.95 kB / 439.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.2844, allocations: 114 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.2847, allocations: 189.8 kB / 440.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.2847, allocations: 7.922 kB / 440.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004692/0.2852, allocations: 241.4 kB / 440.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.2852, allocations: 8 kB / 440.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2852, allocations: 0 / 440.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.2853, allocations: 4 kB / 440.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002845/0.2855, allocations: 67.89 kB / 440.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.2856, allocations: 4 kB / 440.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.2857, allocations: 23.78 kB / 440.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.2857, allocations: 12 kB / 440.6 MB, free: 12.82 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.0001471/0.2859, allocations: 149.8 kB / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.2859, allocations: 15.91 kB / 440.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004217/0.2863, allocations: 187.3 kB / 440.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2863, allocations: 7.938 kB / 441 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2863, allocations: 3.984 kB / 441 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2864, allocations: 0 / 441 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003563/0.2867, allocations: 272.5 kB / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2867, allocations: 0 / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002917/0.287, allocations: 51.97 kB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.287, allocations: 0 / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.287, allocations: 7.984 kB / 441.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.287, allocations: 7.938 kB / 441.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.287, allocations: 0 / 441.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005869/0.2876, allocations: 343.2 kB / 441.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.97e-05/0.2877, allocations: 23.92 kB / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.464e-05/0.2877, allocations: 11.94 kB / 441.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.2879, allocations: 15.98 kB / 441.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.2879, allocations: 20 kB / 441.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.2879, allocations: 4 kB / 441.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001373/0.2881, allocations: 148.6 kB / 441.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2881, allocations: 0 / 441.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003219/0.2884, allocations: 79.78 kB / 441.9 MB, free: 11.42 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.000926/0.2893, allocations: 0.8906 MB / 442.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003816/0.2897, allocations: 151.8 kB / 443 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.2897, allocations: 4 kB / 443 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001524/0.2899, allocations: 67.89 kB / 443 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.2902, allocations: 36.45 kB / 443.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.2938, allocations: 2.702 MB / 445.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/0.2939, allocations: 159.1 kB / 445.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.455e-05/0.294, allocations: 25.92 kB / 446 MB, free: 7.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.2941, allocations: 95.41 kB / 446 MB, free: 7.145 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2941, allocations: 7.938 kB / 446.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03434/0.3285, allocations: 5.246 MB / 451.3 MB, free: 2.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.92, allocations: 22.53 kB / 451.3 MB, free: 2.039 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/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: 13.533372666017385]