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.001258/0.001258, allocations: 108.8 kB / 21.22 MB, free: 0.7305 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.001545/0.001545, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.372/1.372, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 39.94 kB / 371.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2404, allocations: 52.18 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004188/0.2446, allocations: 2.931 MB / 426.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.2457, allocations: 0.67 MB / 427 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.2458, allocations: 8 kB / 427 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.246, allocations: 55.38 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.2461, allocations: 91.19 kB / 427.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002556/0.2464, allocations: 87.89 kB / 427.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004235/0.2468, allocations: 390.3 kB / 427.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.247, allocations: 114.8 kB / 427.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.2472, allocations: 151.4 kB / 427.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002722/0.2475, allocations: 155.3 kB / 428 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.245e-05/0.2476, allocations: 32 kB / 428.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.061e-05/0.2476, allocations: 32 kB / 428.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.387e-05/0.2477, allocations: 71.77 kB / 428.2 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.2478, allocations: 167.2 kB / 428.3 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004212/0.2483, allocations: 386 kB / 428.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2483, allocations: 0 / 428.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2483, allocations: 4 kB / 428.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.2483, allocations: 0 / 428.7 MB, free: 9.266 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.0009026/0.2492, allocations: 0.5404 MB / 429.3 MB, free: 8.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.2492, allocations: 12.03 kB / 429.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.173e-05/0.2492, allocations: 12.84 kB / 429.3 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.492e-05/0.2493, allocations: 66.72 kB / 429.4 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.515e-05/0.2494, allocations: 40.7 kB / 429.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.2497, allocations: 198 kB / 429.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.2497, allocations: 25.03 kB / 429.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.535e-05/0.2498, allocations: 36.33 kB / 429.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005312/0.2503, allocations: 274 kB / 429.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2503, allocations: 0 / 429.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.2504, allocations: 23.98 kB / 429.9 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.2504, allocations: 8 kB / 429.9 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004555/0.2508, allocations: 198.5 kB / 430.1 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.2523, allocations: 0.9407 MB / 431.1 MB, free: 6.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.2526, allocations: 142.7 kB / 431.2 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.2528, allocations: 72.83 kB / 431.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.2528, allocations: 4 kB / 431.3 MB, free: 6.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/0.2529, allocations: 38.48 kB / 431.3 MB, free: 6.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.333e-06/0.2529, allocations: 0 / 431.3 MB, free: 6.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005906/0.2534, allocations: 213 kB / 431.5 MB, free: 6.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.2535, allocations: 55.41 kB / 431.6 MB, free: 6.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002305/0.2537, allocations: 214.9 kB / 431.8 MB, free: 6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.2537, allocations: 29.7 kB / 431.8 MB, free: 5.965 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.2539, allocations: 188.4 kB / 432 MB, free: 5.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.533e-05/0.2539, allocations: 67.44 kB / 432.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.597e-05/0.254, allocations: 53.64 kB / 432.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.2542, allocations: 334.8 kB / 432.5 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.2543, allocations: 63.91 kB / 432.5 MB, free: 5.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.2545, allocations: 117.9 kB / 432.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003456/0.2549, allocations: 193.8 kB / 432.8 MB, free: 4.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.2549, allocations: 0 / 432.8 MB, free: 4.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004919/0.2554, allocations: 245.2 kB / 433.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2554, allocations: 8.125 kB / 433.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2554, allocations: 4 kB / 433.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.2554, allocations: 4 kB / 433.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.2557, allocations: 59.91 kB / 433.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.2557, allocations: 4 kB / 433.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.2558, allocations: 27.83 kB / 433.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.2559, allocations: 12 kB / 433.2 MB, free: 4.543 MB / 334.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.0001631/0.256, allocations: 145.7 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.874e-05/0.2561, allocations: 27.86 kB / 433.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004351/0.2565, allocations: 183.4 kB / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2565, allocations: 0 / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.2565, allocations: 0 / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.2565, allocations: 4 kB / 433.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003854/0.2569, allocations: 288.5 kB / 433.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2569, allocations: 0 / 433.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002717/0.2572, allocations: 51.91 kB / 433.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2572, allocations: 4 kB / 433.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.2572, allocations: 11.98 kB / 433.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2572, allocations: 0 / 433.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.2572, allocations: 3.984 kB / 433.9 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006353/0.2578, allocations: 357.7 kB / 434.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.059e-05/0.2579, allocations: 23.84 kB / 434.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.949e-05/0.2579, allocations: 4.062 kB / 434.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.2581, allocations: 15.92 kB / 434.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.84e-05/0.2582, allocations: 15.97 kB / 434.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.2582, allocations: 4 kB / 434.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001512/0.2583, allocations: 152.6 kB / 434.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2583, allocations: 0 / 434.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.2587, allocations: 75.78 kB / 434.5 MB, free: 3.125 MB / 334.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.0009677/0.2596, allocations: 0.884 MB / 435.4 MB, free: 2.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004283/0.2601, allocations: 152.4 kB / 435.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2601, allocations: 0 / 435.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.2602, allocations: 71.34 kB / 435.6 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.2605, allocations: 36.11 kB / 435.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.2643, allocations: 2.712 MB / 438.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.2647, allocations: 0.7671 MB / 439.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.881e-05/0.2648, allocations: 17.95 kB / 439.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.2649, allocations: 103.3 kB / 439.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2649, allocations: 0 / 439.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02675/0.2917, allocations: 4.823 MB / 444.1 MB, free: 9.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.07, allocations: 4.062 kB / 444.1 MB, free: 9.566 MB / 350.1 MB " [Timeout remaining time 649] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/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: 13.8094516780111]