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.001602/0.001602, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002002/0.002002, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.452/1.452, allocations: 230.5 MB / 258.2 MB, free: 7.801 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.00291/0.00291, allocations: 63.89 kB / 378.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3307, allocations: 53.39 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004307/0.335, allocations: 2.724 MB / 434.6 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.3365, allocations: 0.6699 MB / 435.3 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002061/0.3367, allocations: 8 kB / 435.3 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002288/0.3369, allocations: 63.36 kB / 435.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.3371, allocations: 95.19 kB / 435.5 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.3374, allocations: 79.89 kB / 435.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004258/0.3378, allocations: 374.4 kB / 435.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002808/0.3381, allocations: 113.8 kB / 436 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003672/0.3385, allocations: 155.4 kB / 436.2 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000229/0.3387, allocations: 159.3 kB / 436.3 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.638e-05/0.3388, allocations: 32 kB / 436.4 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.425e-05/0.3388, allocations: 32 kB / 436.4 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.674e-05/0.3389, allocations: 75.75 kB / 436.5 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.3391, allocations: 135.4 kB / 436.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004888/0.3396, allocations: 390.3 kB / 437 MB, free: 1.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3396, allocations: 0 / 437 MB, free: 1.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3396, allocations: 3.938 kB / 437 MB, free: 1.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3396, allocations: 0 / 437 MB, free: 1.395 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.0009879/0.3406, allocations: 0.5326 MB / 437.5 MB, free: 0.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3406, allocations: 12.03 kB / 437.5 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.537e-05/0.3406, allocations: 8.844 kB / 437.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.453e-05/0.3407, allocations: 70.72 kB / 437.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.153e-05/0.3408, allocations: 36.7 kB / 437.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004142/0.3412, allocations: 210.7 kB / 437.8 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.3412, allocations: 24.97 kB / 437.9 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.223e-05/0.3413, allocations: 32.38 kB / 437.9 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006198/0.3419, allocations: 329.4 kB / 438.2 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.3419, allocations: 3.984 kB / 438.2 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.3419, allocations: 15.98 kB / 438.2 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.342, allocations: 8 kB / 438.3 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005204/0.3425, allocations: 206.5 kB / 438.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.3441, allocations: 0.8627 MB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003399/0.3444, allocations: 154.7 kB / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.3446, allocations: 68.83 kB / 439.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.3446, allocations: 3.938 kB / 439.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/0.3446, allocations: 38.56 kB / 439.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.373e-06/0.3446, allocations: 0 / 439.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005663/0.3452, allocations: 217.7 kB / 439.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.3452, allocations: 51.41 kB / 439.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.3455, allocations: 214.7 kB / 440 MB, free: 14.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.3455, allocations: 25.7 kB / 440.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.3456, allocations: 196.4 kB / 440.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.41e-05/0.3457, allocations: 71.39 kB / 440.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.806e-05/0.3458, allocations: 45.7 kB / 440.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3459, allocations: 338.8 kB / 440.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.3461, allocations: 59.91 kB / 440.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/0.3464, allocations: 130 kB / 440.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003626/0.3467, allocations: 189.7 kB / 441.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3467, allocations: 0 / 441.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004805/0.3472, allocations: 249.2 kB / 441.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.3472, allocations: 6.656 kB / 441.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3472, allocations: 4 kB / 441.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.3473, allocations: 0 / 441.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002912/0.3475, allocations: 59.91 kB / 441.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.3476, allocations: 8.125 kB / 441.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001619/0.3477, allocations: 23.88 kB / 441.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.3477, allocations: 8 kB / 441.4 MB, free: 12.67 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.000162/0.3479, allocations: 149.7 kB / 441.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.348, allocations: 19.86 kB / 441.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004297/0.3484, allocations: 194 kB / 441.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3484, allocations: 0 / 441.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3484, allocations: 0 / 441.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3484, allocations: 4 kB / 441.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003691/0.3488, allocations: 272.6 kB / 442.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.3488, allocations: 3.984 kB / 442.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002843/0.349, allocations: 55.91 kB / 442.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3491, allocations: 0 / 442.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.3491, allocations: 4 kB / 442.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.3491, allocations: 0 / 442.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3491, allocations: 0 / 442.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005965/0.3497, allocations: 355.8 kB / 442.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.442e-05/0.3497, allocations: 31.78 kB / 442.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.3498, allocations: 4.062 kB / 442.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.3499, allocations: 15.98 kB / 442.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.828e-05/0.35, allocations: 15.92 kB / 442.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.35, allocations: 11.98 kB / 442.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001339/0.3501, allocations: 144.6 kB / 442.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3501, allocations: 0 / 442.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003552/0.3505, allocations: 79.78 kB / 442.8 MB, free: 11.25 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.0009171/0.3514, allocations: 0.8789 MB / 443.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004079/0.3518, allocations: 159.8 kB / 443.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3518, allocations: 0 / 443.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.352, allocations: 72.16 kB / 443.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000374/0.3524, allocations: 32.84 kB / 443.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.3561, allocations: 2.708 MB / 446.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001562/0.3563, allocations: 159.1 kB / 446.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.511e-05/0.3564, allocations: 21.95 kB / 446.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.3565, allocations: 95.34 kB / 446.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3565, allocations: 4 kB / 446.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.3862, allocations: 4.888 MB / 451.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.55, allocations: 4.062 kB / 451.8 MB, free: 2.23 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.492562656989321]