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.0008524/0.0008524, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.003917/0.003917, allocations: 158.8 kB / 24.7 MB, free: 8.891 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.8793/0.8793, allocations: 177 MB / 204.9 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: 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 1.843e-06/1.843e-06, allocations: 0 / 325.7 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.476e-05/2.66e-05, allocations: 3.125 kB / 325.7 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002259/0.002286, allocations: 1.669 MB / 327.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005891/0.002875, allocations: 291.1 kB / 327.7 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.789e-05/0.002963, allocations: 7.938 kB / 327.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.003085, allocations: 23.67 kB / 327.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.631e-05/0.003121, allocations: 23.81 kB / 327.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003784/0.003499, allocations: 127.7 kB / 327.9 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002683/0.003768, allocations: 275.5 kB / 328.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.00401, allocations: 151.5 kB / 328.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.004122, allocations: 143.7 kB / 328.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.004227, allocations: 71.77 kB / 328.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.004257, allocations: 28 kB / 328.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.175e-05/0.004309, allocations: 24 kB / 328.6 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.02e-05/0.004359, allocations: 59.81 kB / 328.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.253e-05/0.004422, allocations: 71.81 kB / 328.7 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002521/0.004674, allocations: 259.1 kB / 328.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.004677, allocations: 4 kB / 328.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.004679, allocations: 0 / 328.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.004685, allocations: 0 / 328.9 MB, free: 12.2 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000516/0.005201, allocations: 425.1 kB / 329.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.005238, allocations: 15.98 kB / 329.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.005384, allocations: 36.78 kB / 329.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.005625, allocations: 177.4 kB / 329.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.005656, allocations: 24.88 kB / 329.6 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.005689, allocations: 28.38 kB / 329.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004076/0.006096, allocations: 269.8 kB / 329.9 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.006107, allocations: 192 / 329.9 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.006124, allocations: 8.375 kB / 329.9 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.006132, allocations: 8.375 kB / 329.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.006331, allocations: 173.7 kB / 330.1 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007901/0.007121, allocations: 0.8361 MB / 330.9 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.007322, allocations: 153.3 kB / 331.1 MB, free: 9.926 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.12e-05/0.007393, allocations: 69.78 kB / 331.1 MB, free: 9.852 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.007409, allocations: 4 kB / 331.1 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.007555, allocations: 145.6 kB / 331.3 MB, free: 9.688 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.112e-06/0.007556, allocations: 0 / 331.3 MB, free: 9.688 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003084/0.007864, allocations: 217.3 kB / 331.5 MB, free: 9.469 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.007911, allocations: 93.03 kB / 331.6 MB, free: 9.359 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.146e-05/0.008003, allocations: 157.7 kB / 331.7 MB, free: 9.195 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.008021, allocations: 37.83 kB / 331.8 MB, free: 9.152 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.983e-05/0.008091, allocations: 144.8 kB / 331.9 MB, free: 9.004 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.008125, allocations: 63.48 kB / 332 MB, free: 8.941 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.12e-05/0.008196, allocations: 89.45 kB / 332.1 MB, free: 8.848 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.712e-05/0.008273, allocations: 322.8 kB / 332.4 MB, free: 8.523 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.008475, allocations: 59.97 kB / 332.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.008578, allocations: 140.5 kB / 332.6 MB, free: 8.297 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.008755, allocations: 192.5 kB / 332.8 MB, free: 8.078 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.008758, allocations: 0 / 332.8 MB, free: 8.078 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002384/0.008997, allocations: 257.5 kB / 333 MB, free: 7.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.009011, allocations: 8.031 kB / 333 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.009018, allocations: 4 kB / 333 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.009032, allocations: 4 kB / 333 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.198e-05/0.009124, allocations: 31.92 kB / 333.1 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.009132, allocations: 7.984 kB / 333.1 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.863e-05/0.009191, allocations: 23.84 kB / 333.1 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.009203, allocations: 16 kB / 333.1 MB, free: 7.727 MB / 298.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 0.000111/0.009314, allocations: 169.6 kB / 333.3 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.009329, allocations: 15.84 kB / 333.3 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.147e-05/0.009361, allocations: 20.94 kB / 333.3 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.009363, allocations: 0 / 333.3 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.009369, allocations: 4 kB / 333.3 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.009374, allocations: 3.984 kB / 333.3 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004171/0.009791, allocations: 0.4928 MB / 333.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.009792, allocations: 0 / 333.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.579e-05/0.009828, allocations: 15.98 kB / 333.8 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.009832, allocations: 4 kB / 333.8 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.009841, allocations: 7.875 kB / 333.8 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.009842, allocations: 0 / 333.8 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.009845, allocations: 11.94 kB / 333.8 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001795/0.01002, allocations: 277.1 kB / 334.1 MB, free: 6.641 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.109e-05/0.01004, allocations: 11.91 kB / 334.1 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.01005, allocations: 4 kB / 334.1 MB, free: 6.625 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.275e-05/0.0101, allocations: 8 kB / 334.1 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.607e-05/0.01015, allocations: 27.95 kB / 334.2 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.01016, allocations: 8 kB / 334.2 MB, free: 6.582 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.902e-05/0.0102, allocations: 102.1 kB / 334.3 MB, free: 6.484 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0102, allocations: 0 / 334.3 MB, free: 6.484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001913/0.01039, allocations: 47.83 kB / 334.3 MB, free: 6.438 MB / 298.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,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 8.63e-05/0.01048, allocations: 115.1 kB / 334.4 MB, free: 6.316 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002204/0.0107, allocations: 163.9 kB / 334.6 MB, free: 6.156 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.0107, allocations: 0 / 334.6 MB, free: 6.156 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.519e-05/0.01077, allocations: 75.7 kB / 334.7 MB, free: 6.082 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.01097, allocations: 31.95 kB / 334.7 MB, free: 6.051 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004315/0.01141, allocations: 354 kB / 335 MB, free: 5.668 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.363e-05/0.01149, allocations: 129.6 kB / 335.2 MB, free: 5.523 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.709e-05/0.01154, allocations: 20.5 kB / 335.2 MB, free: 5.504 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01154, allocations: 0 / 335.2 MB, free: 5.504 MB / 298.7 MB Notification: Performance of Templates: time 0.003011/0.01455, allocations: 2.305 MB / 337.5 MB, free: 3.199 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/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: 4.263330411165953]