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.001711/0.001711, allocations: 84.95 kB / 20.68 MB, free: 1.035 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.002011/0.002011, allocations: 158.2 kB / 23.95 MB, free: 4.168 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.678/1.678, allocations: 177 MB / 204.1 MB, free: 9.18 MB / 190.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_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 1.413e-06/1.413e-06, allocations: 0 / 325 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.209e-05/2.35e-05, allocations: 5.516 kB / 325 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002913/0.002937, allocations: 1.687 MB / 326.7 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008264/0.003763, allocations: 296.4 kB / 327 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.003892, allocations: 2.625 kB / 327 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.004046, allocations: 30.2 kB / 327 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.283e-05/0.004128, allocations: 15.75 kB / 327 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005023/0.004631, allocations: 127.4 kB / 327.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004316/0.005062, allocations: 279.6 kB / 327.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003396/0.005402, allocations: 152.4 kB / 327.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002119/0.005614, allocations: 139.8 kB / 327.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001498/0.005764, allocations: 72.83 kB / 327.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.445e-05/0.005808, allocations: 24.78 kB / 327.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.081e-05/0.005869, allocations: 25.58 kB / 327.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.664e-05/0.005945, allocations: 59.34 kB / 327.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.006051, allocations: 69.56 kB / 327.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003944/0.006446, allocations: 257.6 kB / 328.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.006452, allocations: 4.562 kB / 328.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.006453, allocations: 0 / 328.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.006466, allocations: 4 kB / 328.2 MB, free: 14.56 MB / 302.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.0007707/0.007237, allocations: 426.9 kB / 328.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.007277, allocations: 14.02 kB / 328.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002334/0.00751, allocations: 31.97 kB / 328.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.007819, allocations: 174 kB / 328.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.718e-05/0.007856, allocations: 22.14 kB / 328.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.242e-05/0.007898, allocations: 26.78 kB / 328.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005029/0.008401, allocations: 271.7 kB / 329.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.008414, allocations: 1.531 kB / 329.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.982e-05/0.008444, allocations: 15.73 kB / 329.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.008453, allocations: 6.219 kB / 329.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003502/0.008803, allocations: 166.5 kB / 329.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.009998, allocations: 0.8237 MB / 330.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.01031, allocations: 157.4 kB / 330.3 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.01045, allocations: 72.2 kB / 330.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.01047, allocations: 2.094 kB / 330.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002306/0.0107, allocations: 151.7 kB / 330.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 4.178e-06/0.01071, allocations: 9.047 kB / 330.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004615/0.01117, allocations: 225 kB / 330.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/0.01124, allocations: 86.88 kB / 330.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.01138, allocations: 157.8 kB / 331 MB, free: 12.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.01142, allocations: 33.98 kB / 331 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.01153, allocations: 142.9 kB / 331.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.402e-05/0.0116, allocations: 61.48 kB / 331.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.01171, allocations: 80.16 kB / 331.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.01186, allocations: 330.9 kB / 331.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.01199, allocations: 61.97 kB / 331.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.01217, allocations: 144.1 kB / 331.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002831/0.01245, allocations: 189 kB / 332 MB, free: 11.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.01246, allocations: 1.031 kB / 332 MB, free: 11.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004123/0.01287, allocations: 257.4 kB / 332.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.01288, allocations: 5.781 kB / 332.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.01289, allocations: 3.219 kB / 332.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.01291, allocations: 3.531 kB / 332.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.01305, allocations: 33.89 kB / 332.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.01307, allocations: 11.66 kB / 332.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.01318, allocations: 29 kB / 332.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.01321, allocations: 20.97 kB / 332.4 MB, free: 11.41 MB / 302.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.0001572/0.01336, allocations: 152.3 kB / 332.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.01339, allocations: 14.98 kB / 332.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.771e-05/0.01344, allocations: 19.16 kB / 332.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.01344, allocations: 2.344 kB / 332.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.01345, allocations: 1.125 kB / 332.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.01346, allocations: 5.078 kB / 332.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007025/0.01416, allocations: 493.8 kB / 333 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01416, allocations: 0 / 333 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.395e-05/0.01424, allocations: 18.95 kB / 333.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.01424, allocations: 2.062 kB / 333.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.01426, allocations: 6.531 kB / 333.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.01426, allocations: 4.75 kB / 333.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.01426, allocations: 1.125 kB / 333.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003337/0.01459, allocations: 284.9 kB / 333.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.058e-05/0.01461, allocations: 16.41 kB / 333.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.726e-05/0.01464, allocations: 6.281 kB / 333.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.353e-05/0.01474, allocations: 7.844 kB / 333.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.402e-05/0.01481, allocations: 24.02 kB / 333.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.01482, allocations: 13.94 kB / 333.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.291e-05/0.01489, allocations: 93.48 kB / 333.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01489, allocations: 0 / 333.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000304/0.01519, allocations: 49.42 kB / 333.6 MB, free: 10.48 MB / 302.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,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 0.0001141/0.01531, allocations: 110.3 kB / 333.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003188/0.01562, allocations: 172.2 kB / 333.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01563, allocations: 4.5 kB / 333.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.01575, allocations: 74.06 kB / 333.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.01604, allocations: 29.02 kB / 333.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005904/0.01663, allocations: 341 kB / 334.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.01676, allocations: 128.5 kB / 334.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.638e-05/0.01683, allocations: 17.39 kB / 334.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.146e-05/0.01689, allocations: 20.75 kB / 334.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.01689, allocations: 0 / 334.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of Templates: time 0.005119/0.02201, allocations: 1.722 MB / 336.2 MB, free: 9.008 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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: 4.5577588230371475]