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.001282/0.001282, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001346/0.001346, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.354/1.354, allocations: 230.6 MB / 258.3 MB, free: 8.035 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 43.94 kB / 378.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2287, allocations: 53.36 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004141/0.2329, allocations: 2.945 MB / 434.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.234, allocations: 0.7183 MB / 435.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.2342, allocations: 11.94 kB / 435.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001818/0.2344, allocations: 63.42 kB / 435.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001639/0.2345, allocations: 79.2 kB / 435.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.2348, allocations: 91.81 kB / 435.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003907/0.2352, allocations: 378.4 kB / 436.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.2354, allocations: 109.8 kB / 436.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002591/0.2356, allocations: 155.5 kB / 436.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002051/0.2358, allocations: 159.2 kB / 436.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.606e-05/0.2359, allocations: 32 kB / 436.7 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.854e-05/0.2359, allocations: 32 kB / 436.7 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.999e-05/0.236, allocations: 75.77 kB / 436.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.2362, allocations: 171.1 kB / 436.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004127/0.2366, allocations: 374.4 kB / 437.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2366, allocations: 0 / 437.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2366, allocations: 0 / 437.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.2366, allocations: 0 / 437.3 MB, free: 1.461 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.000905/0.2375, allocations: 0.5482 MB / 437.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.2375, allocations: 12.03 kB / 437.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.264e-05/0.2375, allocations: 4.844 kB / 437.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.717e-05/0.2376, allocations: 70.72 kB / 437.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.751e-05/0.2377, allocations: 44.7 kB / 438 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.238, allocations: 198.7 kB / 438.2 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.238, allocations: 25.03 kB / 438.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.033e-05/0.2381, allocations: 32.38 kB / 438.2 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000527/0.2386, allocations: 282 kB / 438.5 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2386, allocations: 0 / 438.5 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.2386, allocations: 12 kB / 438.5 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.2387, allocations: 8 kB / 438.5 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004603/0.2391, allocations: 206.5 kB / 438.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001442/0.2406, allocations: 0.9368 MB / 439.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.2409, allocations: 150.6 kB / 439.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.241, allocations: 76.81 kB / 439.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.2411, allocations: 0 / 439.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.2411, allocations: 38.56 kB / 439.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 9.42e-07/0.2411, allocations: 0 / 439.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005352/0.2416, allocations: 216.1 kB / 440.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.2417, allocations: 55.41 kB / 440.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.2419, allocations: 218.7 kB / 440.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.2e-05/0.2419, allocations: 29.7 kB / 440.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.242, allocations: 192.4 kB / 440.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.232e-05/0.2421, allocations: 71.38 kB / 440.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.891e-05/0.2422, allocations: 45.7 kB / 440.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.2423, allocations: 334.8 kB / 441 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.2425, allocations: 63.97 kB / 441.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.2427, allocations: 121.9 kB / 441.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003537/0.243, allocations: 193.8 kB / 441.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.243, allocations: 0 / 441.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004468/0.2435, allocations: 237.3 kB / 441.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2435, allocations: 4 kB / 441.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.2435, allocations: 7.984 kB / 441.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.2435, allocations: 4.125 kB / 441.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.2438, allocations: 67.84 kB / 441.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.2438, allocations: 7.938 kB / 441.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.2439, allocations: 19.88 kB / 441.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.244, allocations: 12 kB / 441.8 MB, free: 12.72 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.0001285/0.2441, allocations: 141.7 kB / 441.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.51e-05/0.2441, allocations: 23.8 kB / 441.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004051/0.2445, allocations: 195.4 kB / 442.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.2445, allocations: 0 / 442.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2445, allocations: 0 / 442.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.2445, allocations: 0 / 442.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003614/0.2449, allocations: 292.5 kB / 442.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.2449, allocations: 0 / 442.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.2452, allocations: 55.91 kB / 442.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2452, allocations: 0 / 442.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.2452, allocations: 4 kB / 442.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2452, allocations: 4 kB / 442.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2452, allocations: 0 / 442.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005763/0.2458, allocations: 351.1 kB / 442.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-05/0.2458, allocations: 31.81 kB / 442.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.2458, allocations: 8.062 kB / 442.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.246, allocations: 19.98 kB / 442.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.2461, allocations: 7.984 kB / 442.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.2461, allocations: 7.984 kB / 442.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001364/0.2462, allocations: 156.5 kB / 443 MB, free: 11.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2462, allocations: 0 / 443 MB, free: 11.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003064/0.2465, allocations: 71.78 kB / 443.1 MB, free: 11.3 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.000871/0.2474, allocations: 0.8864 MB / 444 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003722/0.2478, allocations: 147.9 kB / 444.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2478, allocations: 4.25 kB / 444.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.2479, allocations: 75.86 kB / 444.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.2482, allocations: 38.47 kB / 444.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003422/0.2517, allocations: 2.716 MB / 447 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.252, allocations: 0.7671 MB / 447.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.638e-05/0.2521, allocations: 21.95 kB / 447.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.2522, allocations: 95.41 kB / 447.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2522, allocations: 0 / 447.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02646/0.2787, allocations: 4.812 MB / 452.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.06, allocations: 9.594 kB / 452.7 MB, free: 1.746 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.823919869959354]