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.001252/0.001252, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001463/0.001463, allocations: 207.6 kB / 24.53 MB, free: 4.07 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.458/1.458, allocations: 230.5 MB / 258.2 MB, free: 8.039 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 59.91 kB / 378.6 MB, free: 3.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2606, allocations: 53.42 MB / 432 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.005252/0.2659, allocations: 2.937 MB / 434.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001889/0.2677, allocations: 0.7243 MB / 435.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002337/0.268, allocations: 4 kB / 435.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.2682, allocations: 63.38 kB / 435.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.2684, allocations: 83.2 kB / 435.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003124/0.2687, allocations: 95.81 kB / 435.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004362/0.2691, allocations: 378.4 kB / 436.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002453/0.2694, allocations: 106.9 kB / 436.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003081/0.2697, allocations: 155.5 kB / 436.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.2699, allocations: 155.3 kB / 436.7 MB, free: 2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.192e-05/0.27, allocations: 36 kB / 436.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.377e-05/0.27, allocations: 32 kB / 436.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.121e-05/0.2701, allocations: 71.77 kB / 436.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001815/0.2703, allocations: 171.1 kB / 437 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004976/0.2708, allocations: 382.1 kB / 437.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2708, allocations: 0 / 437.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.378e-06/0.2708, allocations: 3.984 kB / 437.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.2708, allocations: 0 / 437.3 MB, free: 1.32 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.001069/0.2719, allocations: 0.5365 MB / 437.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.2719, allocations: 12.03 kB / 437.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.267e-05/0.2719, allocations: 8.844 kB / 437.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.491e-05/0.272, allocations: 66.72 kB / 438 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.305e-05/0.2721, allocations: 40.7 kB / 438 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.2725, allocations: 206.7 kB / 438.2 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.2725, allocations: 25.03 kB / 438.2 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.88e-05/0.2726, allocations: 36.38 kB / 438.3 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005334/0.2731, allocations: 274 kB / 438.5 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.2731, allocations: 0 / 438.5 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.2732, allocations: 12 kB / 438.5 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.2732, allocations: 11.94 kB / 438.6 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004948/0.2737, allocations: 206.4 kB / 438.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.2752, allocations: 0.9369 MB / 439.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.2755, allocations: 146.6 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.2757, allocations: 72.81 kB / 439.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.2758, allocations: 4 kB / 439.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.2758, allocations: 46.5 kB / 440 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.122e-06/0.2758, allocations: 0 / 440 MB, free: 14.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005672/0.2764, allocations: 212.2 kB / 440.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.2764, allocations: 51.41 kB / 440.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.2766, allocations: 214.7 kB / 440.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.2767, allocations: 29.7 kB / 440.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.2768, allocations: 196.4 kB / 440.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.038e-05/0.2769, allocations: 75.36 kB / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.2769, allocations: 41.72 kB / 440.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2771, allocations: 334.8 kB / 441.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.2773, allocations: 63.95 kB / 441.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.2775, allocations: 125.9 kB / 441.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.2778, allocations: 185.8 kB / 441.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2778, allocations: 0 / 441.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004642/0.2783, allocations: 249.2 kB / 441.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.2783, allocations: 4 kB / 441.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2783, allocations: 7.938 kB / 441.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.2783, allocations: 4 kB / 441.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.2786, allocations: 59.91 kB / 441.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.2786, allocations: 8.125 kB / 441.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/0.2787, allocations: 23.88 kB / 441.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.2788, allocations: 8 kB / 441.8 MB, free: 12.59 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.0001489/0.2789, allocations: 145.7 kB / 442 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.904e-05/0.2789, allocations: 23.86 kB / 442 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004032/0.2794, allocations: 190.1 kB / 442.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.2794, allocations: 4 kB / 442.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2794, allocations: 0 / 442.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.2794, allocations: 7.984 kB / 442.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003945/0.2798, allocations: 288.5 kB / 442.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2798, allocations: 0 / 442.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.28, allocations: 51.91 kB / 442.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.28, allocations: 0 / 442.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.2801, allocations: 8 kB / 442.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.2801, allocations: 3.984 kB / 442.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2801, allocations: 0 / 442.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006125/0.2807, allocations: 355.7 kB / 442.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.433e-05/0.2807, allocations: 31.86 kB / 442.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.955e-05/0.2807, allocations: 0 / 442.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.2809, allocations: 15.98 kB / 442.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.85e-05/0.281, allocations: 15.97 kB / 442.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.281, allocations: 8 kB / 442.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001397/0.2811, allocations: 148.6 kB / 443.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2811, allocations: 0 / 443.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003264/0.2814, allocations: 79.78 kB / 443.2 MB, free: 11.17 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.0009094/0.2824, allocations: 0.8829 MB / 444 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003939/0.2827, allocations: 143.9 kB / 444.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2827, allocations: 7.875 kB / 444.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.2829, allocations: 76.11 kB / 444.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.2833, allocations: 32.06 kB / 444.3 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003663/0.2869, allocations: 2.715 MB / 447 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.2874, allocations: 0.7671 MB / 447.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.118e-05/0.2875, allocations: 25.94 kB / 447.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.2876, allocations: 91.41 kB / 447.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2876, allocations: 0 / 447.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.3153, allocations: 4.815 MB / 452.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.43, allocations: 7.938 kB / 452.7 MB, free: 1.59 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.398119723016862]