Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001358/0.001358, allocations: 116.7 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001719/0.001719, allocations: 214.3 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 230.5 MB / 257.4 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 59.91 kB / 377.8 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2492, allocations: 53.42 MB / 431.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004171/0.2533, allocations: 2.925 MB / 434.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.2546, allocations: 0.7283 MB / 434.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.2548, allocations: 8 kB / 434.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002133/0.255, allocations: 67.36 kB / 434.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.2552, allocations: 79.2 kB / 435 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002699/0.2554, allocations: 99.75 kB / 435.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004313/0.2559, allocations: 374.5 kB / 435.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.2561, allocations: 105.8 kB / 435.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002827/0.2564, allocations: 159.5 kB / 435.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.2566, allocations: 155.3 kB / 435.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.713e-05/0.2566, allocations: 32 kB / 435.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.822e-05/0.2567, allocations: 32 kB / 435.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.659e-05/0.2568, allocations: 75.7 kB / 436 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.2569, allocations: 171.1 kB / 436.2 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004337/0.2574, allocations: 374.8 kB / 436.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.2574, allocations: 4 kB / 436.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2574, allocations: 0 / 436.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.2574, allocations: 8 kB / 436.6 MB, free: 1.262 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.0009101/0.2583, allocations: 0.5287 MB / 437.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.2583, allocations: 12.03 kB / 437.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.403e-05/0.2584, allocations: 66.72 kB / 437.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.846e-05/0.2585, allocations: 40.7 kB / 437.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.2588, allocations: 206.7 kB / 437.4 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.2589, allocations: 21.03 kB / 437.4 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.2589, allocations: 36.38 kB / 437.5 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005263/0.2594, allocations: 274.2 kB / 437.7 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.2594, allocations: 7.938 kB / 437.7 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/0.2595, allocations: 12 kB / 437.8 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.757e-05/0.2595, allocations: 8.047 kB / 437.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004468/0.26, allocations: 206.5 kB / 438 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.2615, allocations: 0.9368 MB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/0.2618, allocations: 150.6 kB / 439 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.262, allocations: 76.75 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.262, allocations: 8 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.262, allocations: 34.56 kB / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.844e-06/0.262, allocations: 0 / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005503/0.2626, allocations: 216 kB / 439.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.2626, allocations: 51.41 kB / 439.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/0.2628, allocations: 218.7 kB / 439.6 MB, free: 14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.2629, allocations: 33.7 kB / 439.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.263, allocations: 192.4 kB / 439.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.687e-05/0.263, allocations: 71.36 kB / 439.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.447e-05/0.2631, allocations: 45.7 kB / 440 MB, free: 13.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2633, allocations: 334.8 kB / 440.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.2634, allocations: 59.97 kB / 440.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.2636, allocations: 126 kB / 440.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.264, allocations: 189.8 kB / 440.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.264, allocations: 3.938 kB / 440.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004615/0.2645, allocations: 237.3 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2645, allocations: 4 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.2645, allocations: 7.984 kB / 440.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.2645, allocations: 4 kB / 440.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002754/0.2648, allocations: 71.95 kB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.2648, allocations: 4 kB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.2649, allocations: 19.89 kB / 441 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.2649, allocations: 11.98 kB / 441 MB, free: 12.54 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.0001431/0.2651, allocations: 145.7 kB / 441.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.119e-05/0.2651, allocations: 23.86 kB / 441.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004107/0.2656, allocations: 198 kB / 441.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2656, allocations: 0 / 441.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2656, allocations: 0 / 441.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2656, allocations: 4 kB / 441.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003632/0.2659, allocations: 288.5 kB / 441.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.2659, allocations: 0 / 441.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002726/0.2662, allocations: 51.97 kB / 441.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.2662, allocations: 0 / 441.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.2662, allocations: 8 kB / 441.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2662, allocations: 0 / 441.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.2662, allocations: 4 kB / 441.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005841/0.2668, allocations: 347.8 kB / 442.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-05/0.2669, allocations: 35.84 kB / 442.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.2669, allocations: 4.125 kB / 442.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.2671, allocations: 19.98 kB / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.208e-05/0.2671, allocations: 7.984 kB / 442.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.433e-05/0.2672, allocations: 11.94 kB / 442.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001423/0.2673, allocations: 152.6 kB / 442.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2673, allocations: 0 / 442.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003279/0.2676, allocations: 79.78 kB / 442.4 MB, free: 11.11 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.000872/0.2685, allocations: 0.8789 MB / 443.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000376/0.2689, allocations: 147.9 kB / 443.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2689, allocations: 0 / 443.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001598/0.269, allocations: 84.09 kB / 443.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.2694, allocations: 27.88 kB / 443.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003651/0.273, allocations: 2.705 MB / 446.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003939/0.2734, allocations: 0.7671 MB / 447 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.782e-05/0.2735, allocations: 21.89 kB / 447 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.2736, allocations: 95.41 kB / 447.1 MB, free: 6.23 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2736, allocations: 0 / 447.1 MB, free: 6.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03393/0.3076, allocations: 4.8 MB / 451.9 MB, free: 1.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.16, allocations: 7.844 kB / 451.9 MB, free: 1.555 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.863911983789876]