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.001297/0.001297, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001409/0.001409, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.4/1.4, allocations: 225.6 MB / 252.5 MB, free: 13.04 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="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 0.002228/0.002228, allocations: 51.92 kB / 370.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2664, allocations: 52.17 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004442/0.2708, allocations: 2.923 MB / 425.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.2723, allocations: 0.6777 MB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002685/0.2725, allocations: 4 kB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002662/0.2728, allocations: 63.38 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000299/0.2731, allocations: 79.2 kB / 426.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003978/0.2735, allocations: 107.8 kB / 426.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005834/0.2741, allocations: 378.4 kB / 426.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002771/0.2744, allocations: 113.8 kB / 427 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002979/0.2747, allocations: 147.4 kB / 427.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002866/0.275, allocations: 155.3 kB / 427.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.567e-05/0.275, allocations: 32 kB / 427.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.139e-05/0.2751, allocations: 32 kB / 427.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.699e-05/0.2752, allocations: 71.77 kB / 427.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.2754, allocations: 171.2 kB / 427.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004703/0.2758, allocations: 382.7 kB / 427.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.2758, allocations: 7.984 kB / 427.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2758, allocations: 0 / 427.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.2758, allocations: 0 / 427.9 MB, free: 9.273 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.001028/0.2769, allocations: 0.5404 MB / 428.5 MB, free: 8.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2769, allocations: 8.031 kB / 428.5 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.551e-05/0.277, allocations: 74.72 kB / 428.6 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.056e-05/0.2771, allocations: 36.7 kB / 428.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003905/0.2775, allocations: 198 kB / 428.8 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.2775, allocations: 25.03 kB / 428.8 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.751e-05/0.2776, allocations: 32.33 kB / 428.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005679/0.2781, allocations: 278.2 kB / 429.1 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.2782, allocations: 0 / 429.1 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.2782, allocations: 12 kB / 429.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.2782, allocations: 8 kB / 429.1 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000461/0.2787, allocations: 214.4 kB / 429.4 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.2803, allocations: 0.9252 MB / 430.3 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003234/0.2806, allocations: 150.6 kB / 430.4 MB, free: 6.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.2808, allocations: 88.69 kB / 430.5 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.2808, allocations: 0 / 430.5 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.2808, allocations: 38.56 kB / 430.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.182e-06/0.2808, allocations: 0 / 430.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005582/0.2814, allocations: 201.7 kB / 430.7 MB, free: 6.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.2814, allocations: 55.41 kB / 430.8 MB, free: 6.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002376/0.2817, allocations: 218.9 kB / 431 MB, free: 6.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.2817, allocations: 29.7 kB / 431 MB, free: 5.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.2818, allocations: 192.4 kB / 431.2 MB, free: 5.789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.2819, allocations: 67.42 kB / 431.3 MB, free: 5.723 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.282, allocations: 49.7 kB / 431.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.2821, allocations: 330.8 kB / 431.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.2823, allocations: 71.89 kB / 431.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.2825, allocations: 113.9 kB / 431.9 MB, free: 5.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003522/0.2828, allocations: 189.8 kB / 432 MB, free: 4.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.2828, allocations: 3.938 kB / 432 MB, free: 4.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004836/0.2833, allocations: 241.2 kB / 432.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.2833, allocations: 8 kB / 432.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.2833, allocations: 4.125 kB / 432.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.2834, allocations: 4 kB / 432.3 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.2836, allocations: 59.91 kB / 432.4 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.2836, allocations: 4 kB / 432.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/0.2838, allocations: 27.83 kB / 432.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.2838, allocations: 12 kB / 432.4 MB, free: 4.562 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.0001445/0.284, allocations: 145.7 kB / 432.5 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.012e-05/0.284, allocations: 19.86 kB / 432.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004168/0.2844, allocations: 190.5 kB / 432.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.2844, allocations: 4 kB / 432.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2844, allocations: 0 / 432.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.2844, allocations: 3.984 kB / 432.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003652/0.2848, allocations: 288.5 kB / 433 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2848, allocations: 0 / 433 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002747/0.2851, allocations: 55.91 kB / 433.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.2851, allocations: 0 / 433.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.2851, allocations: 4 kB / 433.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.2851, allocations: 4 kB / 433.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2851, allocations: 7.922 kB / 433.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005992/0.2857, allocations: 355.1 kB / 433.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.065e-05/0.2857, allocations: 15.84 kB / 433.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.2858, allocations: 12.06 kB / 433.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.286, allocations: 15.98 kB / 433.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.472e-05/0.286, allocations: 11.97 kB / 433.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.286, allocations: 8.062 kB / 433.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000144/0.2862, allocations: 152.6 kB / 433.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2862, allocations: 0 / 433.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003391/0.2865, allocations: 71.78 kB / 433.7 MB, free: 3.148 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.0008794/0.2874, allocations: 0.9021 MB / 434.6 MB, free: 2.223 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003904/0.2878, allocations: 152.1 kB / 434.8 MB, free: 2.074 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2878, allocations: 0 / 434.8 MB, free: 2.074 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.2879, allocations: 67.91 kB / 434.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.2882, allocations: 24.64 kB / 434.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00358/0.2918, allocations: 2.713 MB / 437.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.2922, allocations: 0.7671 MB / 438.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.227e-05/0.2923, allocations: 17.95 kB / 438.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.2924, allocations: 99.39 kB / 438.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2924, allocations: 0 / 438.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03549/0.3279, allocations: 4.791 MB / 443.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.47, allocations: 10.39 kB / 443.3 MB, free: 9.605 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.078282000962645]