Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.00186/0.00186, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002354/0.002354, allocations: 209.9 kB / 24.48 MB, free: 3.934 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.428/1.428, allocations: 230.5 MB / 258.1 MB, free: 7.789 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: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003107/0.003107, allocations: 63.89 kB / 379 MB, free: 2.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3288, allocations: 53.41 MB / 432.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004411/0.3332, allocations: 1.659 MB / 434 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.3343, allocations: 287.2 kB / 434.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.3345, allocations: 7.938 kB / 434.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001775/0.3346, allocations: 23.73 kB / 434.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.959e-05/0.3347, allocations: 27.72 kB / 434.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006052/0.3353, allocations: 119.8 kB / 434.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005414/0.3359, allocations: 275.4 kB / 434.7 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004016/0.3363, allocations: 171.1 kB / 434.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.3364, allocations: 95.7 kB / 435 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.3366, allocations: 87.53 kB / 435.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.514e-05/0.3367, allocations: 24 kB / 435.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.552e-05/0.3368, allocations: 24 kB / 435.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.682e-05/0.3369, allocations: 63.77 kB / 435.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.337, allocations: 83.59 kB / 435.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004619/0.3375, allocations: 257.9 kB / 435.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.3375, allocations: 4 kB / 435.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3375, allocations: 4 kB / 435.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.3375, allocations: 0 / 435.5 MB, free: 3.359 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009366/0.3385, allocations: 425.2 kB / 436 MB, free: 2.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3385, allocations: 11.98 kB / 436 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000365/0.3389, allocations: 32.78 kB / 436 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004283/0.3393, allocations: 174.1 kB / 436.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.547e-05/0.3393, allocations: 20.88 kB / 436.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.05e-05/0.3394, allocations: 32.31 kB / 436.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007428/0.3401, allocations: 265.8 kB / 436.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.3402, allocations: 8.125 kB / 436.5 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.848e-05/0.3402, allocations: 15.94 kB / 436.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.3402, allocations: 8 kB / 436.5 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005323/0.3408, allocations: 165.6 kB / 436.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.3424, allocations: 0.824 MB / 437.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004803/0.3429, allocations: 156.8 kB / 437.7 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002111/0.3431, allocations: 73.62 kB / 437.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.3432, allocations: 4 kB / 437.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003481/0.3435, allocations: 140.1 kB / 437.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.645e-06/0.3435, allocations: 0 / 437.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007373/0.3442, allocations: 217.3 kB / 438.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.161e-05/0.3443, allocations: 85.11 kB / 438.2 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.3445, allocations: 161.5 kB / 438.3 MB, free: 396 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.68e-05/0.3446, allocations: 41.69 kB / 438.4 MB, free: 348 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.3448, allocations: 144.8 kB / 438.5 MB, free: 196 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.847e-05/0.3448, allocations: 59.55 kB / 438.6 MB, free: 136 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/0.345, allocations: 81.67 kB / 438.6 MB, free: 48 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002175/0.3452, allocations: 322.8 kB / 439 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.3454, allocations: 67.88 kB / 439 MB, free: 15.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003066/0.3458, allocations: 136.5 kB / 439.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004881/0.3462, allocations: 200.2 kB / 439.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3462, allocations: 3.938 kB / 439.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006695/0.3469, allocations: 261.2 kB / 439.6 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3469, allocations: 4 kB / 439.6 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.3469, allocations: 4 kB / 439.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.347, allocations: 4 kB / 439.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.3472, allocations: 31.92 kB / 439.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.845e-05/0.3472, allocations: 11.97 kB / 439.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.3474, allocations: 36.06 kB / 439.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.846e-05/0.3474, allocations: 12 kB / 439.7 MB, free: 14.9 MB / 350.1 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 0.0002317/0.3476, allocations: 161.6 kB / 439.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.516e-05/0.3477, allocations: 15.91 kB / 439.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.749e-05/0.3478, allocations: 16.94 kB / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.3478, allocations: 4 kB / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3478, allocations: 0 / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.3478, allocations: 7.922 kB / 439.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.3489, allocations: 0.4896 MB / 440.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3489, allocations: 4 kB / 440.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.349, allocations: 19.98 kB / 440.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.349, allocations: 4 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.3491, allocations: 4 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3491, allocations: 0 / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.3491, allocations: 4 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005456/0.3496, allocations: 284 kB / 440.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.108e-05/0.3496, allocations: 15.84 kB / 440.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.3497, allocations: 0 / 440.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.3498, allocations: 8 kB / 440.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.934e-05/0.3499, allocations: 31.89 kB / 440.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.3499, allocations: 8 kB / 440.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.35, allocations: 102.5 kB / 440.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.35, allocations: 0 / 440.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004965/0.3505, allocations: 51.84 kB / 440.9 MB, free: 13.61 MB / 350.1 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,step.active,transition1.enableFire,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 0.0001603/0.3507, allocations: 107.2 kB / 441 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005212/0.3512, allocations: 168.3 kB / 441.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3512, allocations: 0 / 441.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002271/0.3515, allocations: 83.77 kB / 441.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004639/0.3519, allocations: 22.73 kB / 441.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009421/0.3529, allocations: 366 kB / 441.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.3531, allocations: 121.6 kB / 441.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.985e-05/0.3531, allocations: 19.44 kB / 441.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3531, allocations: 0 / 441.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of Templates: time 0.006976/0.3601, allocations: 2.298 MB / 444.1 MB, free: 10.38 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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: 7.142908487003297]