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.0008784/0.0008784, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 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.000844/0.000844, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.862/0.862, allocations: 177 MB / 204.1 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.293e-06/1.293e-06, allocations: 0 / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.508e-06/1.08e-05, allocations: 3.266 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002654/0.002665, allocations: 2.72 MB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007744/0.003439, allocations: 0.6738 MB / 327.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.003548, allocations: 7.938 kB / 327.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.003694, allocations: 63.38 kB / 328 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001097/0.003803, allocations: 87.14 kB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001945/0.003998, allocations: 103.8 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002482/0.004246, allocations: 390 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.004427, allocations: 105.8 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/0.00469, allocations: 227.5 kB / 328.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.004809, allocations: 107.7 kB / 329 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.338e-05/0.004842, allocations: 32 kB / 329 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.945e-05/0.004872, allocations: 32 kB / 329.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.882e-05/0.00491, allocations: 71.75 kB / 329.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.362e-05/0.004984, allocations: 119.7 kB / 329.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000271/0.005255, allocations: 390.7 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.005257, allocations: 0 / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.005258, allocations: 0 / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.005263, allocations: 0 / 329.6 MB, free: 10.73 MB / 298.7 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.0005732/0.005836, allocations: 0.5326 MB / 330.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.005872, allocations: 15.98 kB / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.797e-05/0.00592, allocations: 70.72 kB / 330.2 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.51e-05/0.005965, allocations: 40.7 kB / 330.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.006187, allocations: 197.2 kB / 330.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.006204, allocations: 21.03 kB / 330.5 MB, free: 9.797 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.521e-05/0.006239, allocations: 36.38 kB / 330.5 MB, free: 9.762 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003408/0.00658, allocations: 326 kB / 330.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.006589, allocations: 192 / 330.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.006612, allocations: 20.12 kB / 330.9 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.006619, allocations: 8 kB / 330.9 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.006882, allocations: 210.5 kB / 331.1 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000869/0.007751, allocations: 0.8675 MB / 332 MB, free: 8.258 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.007955, allocations: 146.6 kB / 332.1 MB, free: 8.105 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.576e-05/0.008051, allocations: 76.75 kB / 332.2 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.008067, allocations: 4.312 kB / 332.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.008086, allocations: 34.5 kB / 332.2 MB, free: 7.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.008088, allocations: 0 / 332.2 MB, free: 7.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003373/0.008425, allocations: 228.3 kB / 332.4 MB, free: 7.754 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/0.008449, allocations: 51.41 kB / 332.5 MB, free: 7.691 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.008581, allocations: 211 kB / 332.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.008595, allocations: 33.7 kB / 332.7 MB, free: 7.438 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.244e-05/0.008677, allocations: 188.4 kB / 332.9 MB, free: 7.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.476e-05/0.008712, allocations: 71.42 kB / 333 MB, free: 7.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.891e-05/0.008761, allocations: 45.7 kB / 333 MB, free: 7.129 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.767e-05/0.008839, allocations: 330.8 kB / 333.3 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.554e-05/0.008934, allocations: 63.97 kB / 333.4 MB, free: 6.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.009049, allocations: 118 kB / 333.5 MB, free: 6.598 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004021/0.009451, allocations: 193.8 kB / 333.7 MB, free: 6.387 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.009453, allocations: 0 / 333.7 MB, free: 6.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002623/0.009715, allocations: 245.2 kB / 333.9 MB, free: 6.141 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.009729, allocations: 8 kB / 334 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.009734, allocations: 0 / 334 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.009745, allocations: 4 kB / 334 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.009894, allocations: 67.83 kB / 334 MB, free: 6.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.009899, allocations: 0 / 334 MB, free: 6.062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.012e-05/0.009969, allocations: 27.84 kB / 334.1 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.00998, allocations: 16.11 kB / 334.1 MB, free: 6.02 MB / 298.7 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 8.561e-05/0.01007, allocations: 141.7 kB / 334.2 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.565e-05/0.01009, allocations: 23.84 kB / 334.2 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002392/0.01033, allocations: 191.3 kB / 334.4 MB, free: 5.648 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.01033, allocations: 4 kB / 334.4 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.01034, allocations: 0 / 334.4 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.01034, allocations: 0 / 334.4 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.01054, allocations: 264.6 kB / 334.7 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.01054, allocations: 7.984 kB / 334.7 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.01069, allocations: 47.97 kB / 334.7 MB, free: 5.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.01069, allocations: 3.938 kB / 334.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.0107, allocations: 4 kB / 334.7 MB, free: 5.281 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.0107, allocations: 0 / 334.7 MB, free: 5.281 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.71e-07/0.0107, allocations: 4 kB / 334.7 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003333/0.01104, allocations: 350.4 kB / 335.1 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.298e-05/0.01106, allocations: 23.89 kB / 335.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.01108, allocations: 15.98 kB / 335.1 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.85e-05/0.01116, allocations: 12 kB / 335.1 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.0112, allocations: 11.97 kB / 335.1 MB, free: 4.859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.0112, allocations: 11.94 kB / 335.2 MB, free: 4.848 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.331e-05/0.01129, allocations: 148.6 kB / 335.3 MB, free: 4.703 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01129, allocations: 0 / 335.3 MB, free: 4.703 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001965/0.01148, allocations: 75.78 kB / 335.4 MB, free: 4.629 MB / 298.7 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.0004772/0.01196, allocations: 0.8879 MB / 336.3 MB, free: 3.715 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002183/0.01218, allocations: 151.8 kB / 336.4 MB, free: 3.566 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.01218, allocations: 0 / 336.4 MB, free: 3.566 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.645e-05/0.01227, allocations: 75.89 kB / 336.5 MB, free: 3.492 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002302/0.0125, allocations: 37.23 kB / 336.5 MB, free: 3.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.01451, allocations: 2.571 MB / 339.1 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.288e-05/0.01461, allocations: 159.1 kB / 339.3 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.61e-05/0.01466, allocations: 21.94 kB / 339.3 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.372e-05/0.01475, allocations: 100.5 kB / 339.4 MB, free: 480 kB / 298.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01476, allocations: 0 / 339.4 MB, free: 480 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01688/0.03163, allocations: 5.316 MB / 344.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.674/6.706, allocations: 0 / 344.7 MB, free: 11.27 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/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: 8.440186500549316]