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.0009836/0.0009836, allocations: 95.5 kB / 21.2 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.0009702/0.0009702, allocations: 160.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.9738/0.9738, allocations: 177 MB / 204.8 MB, free: 5.562 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 2.665e-06/2.665e-06, allocations: 0 / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.031e-05/4.297e-05, allocations: 5.125 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004223/0.004266, allocations: 1.713 MB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000852/0.005118, allocations: 307 kB / 274.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.005239, allocations: 3.938 kB / 274.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.005396, allocations: 27.69 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.995e-05/0.005456, allocations: 19.8 kB / 274.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.005937, allocations: 127.7 kB / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003698/0.006307, allocations: 279.4 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.006624, allocations: 167.7 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001778/0.006802, allocations: 139.8 kB / 275.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.006945, allocations: 71.77 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.999e-05/0.006995, allocations: 27.98 kB / 275.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.991e-05/0.007065, allocations: 24 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003088/0.01015, allocations: 59.77 kB / 275.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.01026, allocations: 71.8 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003003/0.01056, allocations: 187.2 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.01056, allocations: 0 / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.01056, allocations: 0 / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.01057, allocations: 4 kB / 276.1 MB, free: 14.25 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.0006775/0.01125, allocations: 0.5151 MB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.01129, allocations: 15.98 kB / 276.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000233/0.01152, allocations: 48.78 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.0118, allocations: 184.2 kB / 276.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.027e-05/0.01184, allocations: 24.81 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.633e-05/0.01188, allocations: 28.38 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004204/0.0123, allocations: 248.7 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.01232, allocations: 192 / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.483e-05/0.01234, allocations: 12.38 kB / 277.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.01236, allocations: 12.38 kB / 277.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002414/0.0126, allocations: 102.8 kB / 277.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004198/0.0168, allocations: 1.057 MB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/0.01709, allocations: 146.4 kB / 278.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.01719, allocations: 67.33 kB / 278.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.01722, allocations: 4 kB / 278.5 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.01741, allocations: 140.2 kB / 278.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.01741, allocations: 4 kB / 278.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004046/0.01781, allocations: 190.8 kB / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.01786, allocations: 81.11 kB / 278.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.01802, allocations: 216.7 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.324e-05/0.01805, allocations: 41.69 kB / 279.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.01816, allocations: 187.5 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.414e-05/0.01821, allocations: 63.47 kB / 279.4 MB, free: 10.64 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.01833, allocations: 91.33 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.01846, allocations: 0.4923 MB / 280 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.01857, allocations: 43.97 kB / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.01873, allocations: 148.9 kB / 280.2 MB, free: 9.812 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003287/0.02202, allocations: 192.6 kB / 280.4 MB, free: 9.582 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.02202, allocations: 0 / 280.4 MB, free: 9.582 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003729/0.02239, allocations: 229.3 kB / 280.6 MB, free: 9.352 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.02241, allocations: 15.11 kB / 280.6 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.02242, allocations: 4 kB / 280.6 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.02244, allocations: 4 kB / 280.6 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.02259, allocations: 43.8 kB / 280.7 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.02259, allocations: 4 kB / 280.7 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.286e-05/0.02269, allocations: 24.12 kB / 280.7 MB, free: 9.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.02271, allocations: 20 kB / 280.7 MB, free: 9.242 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 0.0001264/0.02284, allocations: 184.4 kB / 280.9 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.644e-05/0.02287, allocations: 27.84 kB / 280.9 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.259e-05/0.02292, allocations: 20.94 kB / 280.9 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.02292, allocations: 0 / 280.9 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.748e-06/0.02292, allocations: 4 kB / 281 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.02293, allocations: 3.984 kB / 281 MB, free: 9 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006159/0.02355, allocations: 0.5166 MB / 281.5 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.02355, allocations: 4 kB / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.951e-05/0.02362, allocations: 23.92 kB / 281.5 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.02362, allocations: 0 / 281.5 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.02364, allocations: 8 kB / 281.5 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.02364, allocations: 0 / 281.5 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.02364, allocations: 0 / 281.5 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.02396, allocations: 332.1 kB / 281.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.661e-05/0.02397, allocations: 11.95 kB / 281.8 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.024, allocations: 3.984 kB / 281.8 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.723e-05/0.02409, allocations: 11.98 kB / 281.9 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.02416, allocations: 19.97 kB / 281.9 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.02417, allocations: 8 kB / 281.9 MB, free: 8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.527e-05/0.02424, allocations: 139.2 kB / 282 MB, free: 7.863 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02424, allocations: 0 / 282 MB, free: 7.863 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003172/0.02455, allocations: 55.78 kB / 282.1 MB, free: 7.809 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,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.0001022/0.02466, allocations: 115.1 kB / 282.2 MB, free: 7.684 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003277/0.02498, allocations: 156.4 kB / 282.3 MB, free: 7.527 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.02499, allocations: 0.5625 kB / 282.3 MB, free: 7.527 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.02511, allocations: 75.59 kB / 282.4 MB, free: 7.449 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.02542, allocations: 20.84 kB / 282.4 MB, free: 7.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005918/0.02601, allocations: 338.4 kB / 282.8 MB, free: 7.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.519e-05/0.02608, allocations: 84.28 kB / 282.8 MB, free: 6.969 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.255e-05/0.02615, allocations: 21.94 kB / 282.9 MB, free: 6.945 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.086e-05/0.02621, allocations: 24.56 kB / 282.9 MB, free: 6.918 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.02621, allocations: 0 / 282.9 MB, free: 6.918 MB / 266.7 MB Notification: Performance of Templates: time 0.01097/0.03718, allocations: 1.77 MB / 284.7 MB, free: 5.168 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] 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","",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.8008272820152342]