Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.0008711/0.0008711, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.001092/0.001092, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.873/0.873, allocations: 177 MB / 204.1 MB, free: 5.75 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.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.208e-05/2.358e-05, allocations: 2.984 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001976/0.002, allocations: 1.477 MB / 326 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005634/0.002563, allocations: 291.1 kB / 326.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.734e-05/0.002651, allocations: 7.938 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.00278, allocations: 15.75 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.076e-05/0.002821, allocations: 27.78 kB / 326.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003733/0.003194, allocations: 119.7 kB / 326.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002531/0.003447, allocations: 255.5 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002453/0.003692, allocations: 146.7 kB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.003825, allocations: 123.8 kB / 326.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.003945, allocations: 75.75 kB / 327 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.97e-05/0.003974, allocations: 24 kB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.969e-05/0.004034, allocations: 24 kB / 327 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.261e-05/0.004087, allocations: 55.81 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.974e-05/0.004146, allocations: 59.83 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002349/0.004381, allocations: 251.2 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.004384, allocations: 4 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.004385, allocations: 0 / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.00439, allocations: 0 / 327.4 MB, free: 12.96 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005082/0.004899, allocations: 421 kB / 327.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.004941, allocations: 15.98 kB / 327.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.489e-05/0.004986, allocations: 54.73 kB / 327.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.005122, allocations: 28.77 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002463/0.005369, allocations: 165.5 kB / 328.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.0054, allocations: 20.88 kB / 328.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.615e-05/0.005427, allocations: 28.38 kB / 328.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002979/0.005725, allocations: 239.3 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.005742, allocations: 192 / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.005761, allocations: 16.36 kB / 328.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.005769, allocations: 8.125 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.005971, allocations: 153.9 kB / 328.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006983/0.006669, allocations: 0.6124 MB / 329.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.006899, allocations: 158.6 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.449e-05/0.006974, allocations: 64.92 kB / 329.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.006996, allocations: 0 / 329.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.007156, allocations: 124 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.007157, allocations: 0 / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003189/0.007476, allocations: 229.2 kB / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.007514, allocations: 55.41 kB / 329.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.917e-05/0.007603, allocations: 148.8 kB / 329.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.007626, allocations: 41.69 kB / 329.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.123e-05/0.007697, allocations: 132.8 kB / 330.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.007731, allocations: 63.53 kB / 330.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.834e-05/0.007799, allocations: 74.02 kB / 330.2 MB, free: 9.953 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.894e-05/0.007888, allocations: 322.8 kB / 330.5 MB, free: 9.629 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.269e-05/0.007971, allocations: 68.62 kB / 330.6 MB, free: 9.562 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.008075, allocations: 136 kB / 330.7 MB, free: 9.406 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.008238, allocations: 166.8 kB / 330.9 MB, free: 9.219 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.008241, allocations: 0 / 330.9 MB, free: 9.219 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002377/0.008479, allocations: 249.3 kB / 331.1 MB, free: 8.969 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.008498, allocations: 7.938 kB / 331.1 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.008505, allocations: 4 kB / 331.1 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.008519, allocations: 0 / 331.1 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.564e-05/0.008615, allocations: 27.92 kB / 331.2 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.008622, allocations: 4 kB / 331.2 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.045e-05/0.008682, allocations: 31.77 kB / 331.2 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.008696, allocations: 15.98 kB / 331.2 MB, free: 8.879 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001087/0.008805, allocations: 161.9 kB / 331.4 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.634e-05/0.008821, allocations: 19.83 kB / 331.4 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.185e-05/0.008853, allocations: 16.94 kB / 331.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.008856, allocations: 0 / 331.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.008861, allocations: 0 / 331.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.008865, allocations: 0 / 331.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004528/0.009318, allocations: 0.5054 MB / 331.9 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.009319, allocations: 0 / 331.9 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.194e-05/0.009361, allocations: 12 kB / 331.9 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.009366, allocations: 7.984 kB / 331.9 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.009376, allocations: 4 kB / 331.9 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.009378, allocations: 4 kB / 332 MB, free: 8.094 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.00938, allocations: 0 / 332 MB, free: 8.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001867/0.009567, allocations: 276.8 kB / 332.2 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.378e-05/0.009581, allocations: 15.84 kB / 332.2 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.009602, allocations: 7.984 kB / 332.2 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.666e-05/0.009649, allocations: 11.94 kB / 332.3 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.942e-05/0.009708, allocations: 23.95 kB / 332.3 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.009717, allocations: 11.94 kB / 332.3 MB, free: 7.738 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.786e-05/0.009755, allocations: 95.27 kB / 332.4 MB, free: 7.645 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009755, allocations: 4 kB / 332.4 MB, free: 7.641 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001852/0.00994, allocations: 47.89 kB / 332.4 MB, free: 7.594 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0003754/0.01032, allocations: 0.8021 MB / 333.2 MB, free: 6.762 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002088/0.01052, allocations: 163.7 kB / 333.4 MB, free: 6.602 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.01053, allocations: 0 / 333.4 MB, free: 6.602 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.133e-05/0.01061, allocations: 63.92 kB / 333.5 MB, free: 6.539 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002041/0.01081, allocations: 27.38 kB / 333.5 MB, free: 6.516 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.01232, allocations: 2.019 MB / 335.5 MB, free: 4.375 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.64e-05/0.01241, allocations: 116.5 kB / 335.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.743e-05/0.01247, allocations: 21.94 kB / 335.6 MB, free: 4.219 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.561e-05/0.01255, allocations: 60.48 kB / 335.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01255, allocations: 7.938 kB / 335.7 MB, free: 4.152 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01716/0.02971, allocations: 4.174 MB / 339.9 MB, free: 88 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.807/6.836, allocations: 0 / 339.9 MB, free: 88 kB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.488174294121563]