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.001715/0.001715, allocations: 124.5 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.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.002031/0.002031, allocations: 207.2 kB / 20.75 MB, free: 2.316 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.428/1.428, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001499/0.001499, allocations: 47.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1059, allocations: 53.33 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004253/0.1102, allocations: 2.927 MB / 429.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.1114, allocations: 0.7049 MB / 430 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.1116, allocations: 15.94 kB / 430 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001986/0.1118, allocations: 59.42 kB / 430 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000168/0.112, allocations: 91.19 kB / 430.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002588/0.1122, allocations: 83.83 kB / 430.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003915/0.1126, allocations: 382.4 kB / 430.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.1128, allocations: 109.4 kB / 430.7 MB, free: 412 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002767/0.1131, allocations: 151.5 kB / 430.8 MB, free: 260 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.1133, allocations: 163.2 kB / 431 MB, free: 96 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.653e-05/0.1133, allocations: 32 kB / 431 MB, free: 64 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.775e-05/0.1134, allocations: 32 kB / 431.1 MB, free: 32 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2078/0.3211, allocations: 71.2 kB / 431.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002324/0.3214, allocations: 165.6 kB / 431.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005575/0.3219, allocations: 379.4 kB / 431.7 MB, free: 7.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3219, allocations: 0 / 431.7 MB, free: 7.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.3219, allocations: 0.5938 kB / 431.7 MB, free: 7.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.322, allocations: 0.9688 kB / 431.7 MB, free: 7.934 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.000912/0.3229, allocations: 0.6171 MB / 432.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.3229, allocations: 9.219 kB / 432.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.814e-05/0.323, allocations: 70.94 kB / 432.4 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.282e-05/0.3231, allocations: 39.72 kB / 432.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.3234, allocations: 263.6 kB / 432.6 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.3234, allocations: 24.28 kB / 432.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.726e-05/0.3235, allocations: 34.97 kB / 432.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.324, allocations: 275.4 kB / 433 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.324, allocations: 0.75 kB / 433 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.324, allocations: 13.34 kB / 433 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.3241, allocations: 8.562 kB / 433 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004227/0.3245, allocations: 206 kB / 433.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.3258, allocations: 0.9738 MB / 434.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.3261, allocations: 155.4 kB / 434.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.3263, allocations: 73.44 kB / 434.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.3263, allocations: 2.281 kB / 434.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.3263, allocations: 42.53 kB / 434.4 MB, free: 6.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.243e-06/0.3263, allocations: 3.031 kB / 434.4 MB, free: 6.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005708/0.3269, allocations: 215.2 kB / 434.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.638e-05/0.3269, allocations: 53.72 kB / 434.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.3271, allocations: 208.1 kB / 434.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.3271, allocations: 29.83 kB / 434.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.541e-05/0.3272, allocations: 196.1 kB / 435.1 MB, free: 6.234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.071e-05/0.3272, allocations: 76.5 kB / 435.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.612e-05/0.3273, allocations: 46.78 kB / 435.3 MB, free: 6.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.062e-05/0.3274, allocations: 328.4 kB / 435.6 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.3275, allocations: 68.39 kB / 435.6 MB, free: 5.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.3277, allocations: 120.7 kB / 435.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003114/0.328, allocations: 186 kB / 435.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.328, allocations: 2.25 kB / 435.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004307/0.3285, allocations: 239.2 kB / 436.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3285, allocations: 5.734 kB / 436.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.3285, allocations: 2.375 kB / 436.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.3285, allocations: 4.75 kB / 436.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.3288, allocations: 64.16 kB / 436.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.3288, allocations: 5.734 kB / 436.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.3289, allocations: 30.88 kB / 436.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.329, allocations: 10.41 kB / 436.3 MB, free: 5.672 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.000102/0.3291, allocations: 140.1 kB / 436.4 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.3291, allocations: 21.52 kB / 436.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004033/0.3295, allocations: 191.7 kB / 436.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3295, allocations: 2.906 kB / 436.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3295, allocations: 4 kB / 436.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.3295, allocations: 3.891 kB / 436.7 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003228/0.3299, allocations: 323.3 kB / 437 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.3299, allocations: 5.938 kB / 437 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.3301, allocations: 52.25 kB / 437 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.3301, allocations: 4.969 kB / 437 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.3302, allocations: 7.891 kB / 437 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3302, allocations: 1.641 kB / 437 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3302, allocations: 0 / 437 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005635/0.3307, allocations: 347.9 kB / 437.4 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.3308, allocations: 103.6 kB / 437.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.3308, allocations: 6.359 kB / 437.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.331, allocations: 11.92 kB / 437.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.764e-05/0.331, allocations: 18.58 kB / 437.5 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.331, allocations: 4.547 kB / 437.5 MB, free: 5.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001232/0.3312, allocations: 149.3 kB / 437.7 MB, free: 4.949 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3312, allocations: 1.188 kB / 437.7 MB, free: 4.949 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.3315, allocations: 73.03 kB / 437.7 MB, free: 4.938 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.0007453/0.3323, allocations: 0.8897 MB / 438.6 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004542/0.3327, allocations: 147.7 kB / 438.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3327, allocations: 1.25 kB / 438.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.3329, allocations: 84.84 kB / 438.9 MB, free: 4.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.3333, allocations: 27.89 kB / 438.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003377/0.3366, allocations: 2.701 MB / 441.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.3369, allocations: 0.7697 MB / 442.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.782e-05/0.337, allocations: 22.09 kB / 442.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.3371, allocations: 95.81 kB / 442.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3371, allocations: 0 / 442.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0297/0.3668, allocations: 4.559 MB / 447 MB, free: 1.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.837/8.204, allocations: 5.859 kB / 447 MB, free: 1.02 MB / 350.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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] "Error: Could not read variable sineVoltage.phi in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv. Warning: Get data of variable sineVoltage.phi from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.01124472799711]