Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001011/0.001011, allocations: 87.67 kB / 21.19 MB, free: 3.371 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.0009688/0.0009688, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 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.966/0.966, allocations: 177 MB / 204.8 MB, free: 5.586 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: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.58e-05/2.78e-05, allocations: 5.266 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003067/0.003094, allocations: 1.744 MB / 274.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007577/0.003852, allocations: 303 kB / 274.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.00397, allocations: 7.938 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.004135, allocations: 23.75 kB / 275 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.536e-05/0.00421, allocations: 19.73 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004843/0.004695, allocations: 127.8 kB / 275.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003677/0.005062, allocations: 271.4 kB / 275.4 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003218/0.005384, allocations: 162.1 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.005552, allocations: 135.7 kB / 275.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.005691, allocations: 71.77 kB / 275.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.005733, allocations: 24 kB / 275.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.996e-05/0.005803, allocations: 27.94 kB / 275.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.904e-05/0.005872, allocations: 63.8 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.4e-05/0.005956, allocations: 63.83 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003108/0.006266, allocations: 191.2 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.006269, allocations: 0 / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.91e-07/0.00627, allocations: 0 / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.006277, allocations: 4 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006651/0.006943, allocations: 0.5073 MB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.006987, allocations: 11.98 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002526/0.007239, allocations: 60.72 kB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000263/0.007502, allocations: 172.3 kB / 276.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.696e-05/0.007539, allocations: 20.88 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.105e-05/0.00758, allocations: 32.38 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004105/0.007991, allocations: 252.7 kB / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.008008, allocations: 192 / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.008031, allocations: 8.375 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.008045, allocations: 8.375 kB / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000237/0.008282, allocations: 106.7 kB / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.009521, allocations: 1.057 MB / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002317/0.009752, allocations: 154.4 kB / 278.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.64e-05/0.009819, allocations: 55.36 kB / 278.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.00984, allocations: 4 kB / 278.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/0.009992, allocations: 136.2 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.009994, allocations: 4 kB / 278.7 MB, free: 11.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003009/0.01029, allocations: 202.8 kB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.01034, allocations: 81.11 kB / 278.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.01045, allocations: 213.7 kB / 279.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.01047, allocations: 37.7 kB / 279.2 MB, free: 10.92 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.028e-05/0.01055, allocations: 191.4 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.01058, allocations: 59.58 kB / 279.4 MB, free: 10.67 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.959e-05/0.01066, allocations: 87.3 kB / 279.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.01078, allocations: 0.5001 MB / 280 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.794e-05/0.01083, allocations: 35.98 kB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.01094, allocations: 152.9 kB / 280.2 MB, free: 9.836 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.0111, allocations: 184.6 kB / 280.4 MB, free: 9.613 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.0111, allocations: 4 kB / 280.4 MB, free: 9.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002192/0.01132, allocations: 233.3 kB / 280.6 MB, free: 9.375 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.01134, allocations: 10.97 kB / 280.6 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.01134, allocations: 3.938 kB / 280.6 MB, free: 9.363 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.01136, allocations: 4 kB / 280.6 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.831e-05/0.01146, allocations: 39.92 kB / 280.7 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.01146, allocations: 7.984 kB / 280.7 MB, free: 9.312 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.153e-05/0.01152, allocations: 28.06 kB / 280.7 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.01154, allocations: 16 kB / 280.7 MB, free: 9.27 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.891e-05/0.01163, allocations: 184.5 kB / 280.9 MB, free: 9.078 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.01165, allocations: 19.89 kB / 280.9 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.956e-05/0.01168, allocations: 20.92 kB / 280.9 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.01168, allocations: 7.938 kB / 280.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.01168, allocations: 0 / 280.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.01169, allocations: 0 / 280.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004261/0.01211, allocations: 0.5321 MB / 281.5 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01212, allocations: 0 / 281.5 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.673e-05/0.01215, allocations: 23.98 kB / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.01215, allocations: 0 / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.01216, allocations: 4 kB / 281.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.01217, allocations: 7.984 kB / 281.5 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01217, allocations: 0 / 281.5 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001928/0.01236, allocations: 336.1 kB / 281.8 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.125e-05/0.01237, allocations: 15.84 kB / 281.9 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.01239, allocations: 11.98 kB / 281.9 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.271e-05/0.01244, allocations: 4 kB / 281.9 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.01249, allocations: 15.97 kB / 281.9 MB, free: 8.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.0125, allocations: 15.98 kB / 281.9 MB, free: 8.008 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.023e-05/0.01254, allocations: 138.9 kB / 282 MB, free: 7.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01254, allocations: 0 / 282 MB, free: 7.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000186/0.01272, allocations: 51.89 kB / 282.1 MB, free: 7.824 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 8.563e-05/0.01281, allocations: 103.1 kB / 282.2 MB, free: 7.711 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001908/0.013, allocations: 152.4 kB / 282.3 MB, free: 7.559 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.013, allocations: 0.5625 kB / 282.3 MB, free: 7.559 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.423e-05/0.01307, allocations: 75.59 kB / 282.4 MB, free: 7.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.01327, allocations: 31.86 kB / 282.4 MB, free: 7.449 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004038/0.01368, allocations: 330.8 kB / 282.8 MB, free: 7.094 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.823e-05/0.01373, allocations: 84.27 kB / 282.9 MB, free: 6.992 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.018e-05/0.01378, allocations: 26 kB / 282.9 MB, free: 6.969 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.528e-05/0.01382, allocations: 20.5 kB / 282.9 MB, free: 6.945 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01382, allocations: 0 / 282.9 MB, free: 6.945 MB / 266.7 MB Notification: Performance of Templates: time 0.00332/0.01714, allocations: 1.749 MB / 284.6 MB, free: 5.223 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6575547787360847]