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.001849/0.001849, allocations: 103.5 kB / 20.97 MB, free: 3.449 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.002004/0.002004, allocations: 156.8 kB / 24.27 MB, free: 156 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 1.561/1.561, allocations: 177 MB / 204.4 MB, free: 5.625 MB / 186.7 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.423e-06/1.423e-06, allocations: 0 / 272.2 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.506e-05/2.648e-05, allocations: 2.312 kB / 272.2 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003636/0.003662, allocations: 1.719 MB / 273.9 MB, free: 120 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008387/0.004501, allocations: 299.1 kB / 274.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.004622, allocations: 4 kB / 274.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001701/0.004792, allocations: 31.67 kB / 274.2 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.547e-05/0.004857, allocations: 11.81 kB / 274.2 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.005311, allocations: 135.7 kB / 274.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003885/0.0057, allocations: 275.4 kB / 274.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.006008, allocations: 158.1 kB / 274.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.006208, allocations: 135.8 kB / 274.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.006362, allocations: 71.77 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.86e-05/0.00641, allocations: 24 kB / 275 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.057e-05/0.006481, allocations: 28 kB / 275 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.143e-05/0.006572, allocations: 55.81 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.006685, allocations: 75.8 kB / 275.2 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003987/0.007083, allocations: 271 kB / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.007088, allocations: 0 / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.00709, allocations: 0 / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.086e-06/0.007098, allocations: 4 kB / 275.4 MB, free: 14.57 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.0008329/0.007931, allocations: 0.5148 MB / 275.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.007977, allocations: 11.98 kB / 275.9 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002574/0.008235, allocations: 52.78 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.008544, allocations: 172.3 kB / 276.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/0.008592, allocations: 24.88 kB / 276.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.324e-05/0.008635, allocations: 28.38 kB / 276.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005104/0.009146, allocations: 292 kB / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.009159, allocations: 192 / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.435e-05/0.009183, allocations: 8.375 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.009197, allocations: 12.36 kB / 276.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/0.009532, allocations: 165.7 kB / 276.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001619/0.01115, allocations: 1.112 MB / 277.8 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003431/0.01149, allocations: 182.4 kB / 278 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.01163, allocations: 83.28 kB / 278.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.01166, allocations: 8 kB / 278.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002493/0.01191, allocations: 154.5 kB / 278.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.172e-06/0.01191, allocations: 0 / 278.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004952/0.0124, allocations: 233.2 kB / 278.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.592e-05/0.01248, allocations: 89.03 kB / 278.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.0127, allocations: 241.7 kB / 278.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.01274, allocations: 37.7 kB / 278.8 MB, free: 10.94 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.01288, allocations: 183.5 kB / 279 MB, free: 10.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.546e-05/0.01296, allocations: 71.53 kB / 279.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.01311, allocations: 111.3 kB / 279.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003047/0.01341, allocations: 0.5041 MB / 279.7 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.01354, allocations: 63.97 kB / 279.7 MB, free: 9.984 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.01376, allocations: 168.8 kB / 279.9 MB, free: 9.777 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.0141, allocations: 224.8 kB / 280.1 MB, free: 9.516 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.0141, allocations: 0 / 280.1 MB, free: 9.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000455/0.01456, allocations: 277.2 kB / 280.4 MB, free: 9.238 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.01458, allocations: 11.98 kB / 280.4 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.01459, allocations: 0 / 280.4 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.01461, allocations: 4 kB / 280.4 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.01476, allocations: 36.2 kB / 280.4 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.01478, allocations: 11.94 kB / 280.4 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.01488, allocations: 31.78 kB / 280.5 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.0149, allocations: 8 kB / 280.5 MB, free: 9.137 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.0001974/0.0151, allocations: 208.5 kB / 280.7 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.849e-05/0.01514, allocations: 19.89 kB / 280.7 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.495e-05/0.01519, allocations: 20.92 kB / 280.7 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.0152, allocations: 7.938 kB / 280.7 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.0152, allocations: 0 / 280.7 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.0152, allocations: 0 / 280.7 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008272/0.01603, allocations: 0.5759 MB / 281.3 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.01603, allocations: 0 / 281.3 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.961e-05/0.01611, allocations: 19.92 kB / 281.3 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.01612, allocations: 0 / 281.3 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.01613, allocations: 8 kB / 281.3 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.01614, allocations: 0 / 281.3 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.01614, allocations: 0 / 281.3 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004241/0.01656, allocations: 355.3 kB / 281.7 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.397e-05/0.01659, allocations: 15.84 kB / 281.7 MB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.868e-05/0.01661, allocations: 8 kB / 281.7 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.872e-05/0.0167, allocations: 15.98 kB / 281.7 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.253e-05/0.01678, allocations: 19.97 kB / 281.7 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.0168, allocations: 8 kB / 281.8 MB, free: 7.793 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.822e-05/0.0169, allocations: 139.2 kB / 281.9 MB, free: 7.656 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0169, allocations: 3.938 kB / 281.9 MB, free: 7.652 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002977/0.0172, allocations: 51.89 kB / 281.9 MB, free: 7.602 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 0.0001427/0.01734, allocations: 103.2 kB / 282 MB, free: 7.488 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000417/0.01776, allocations: 204.7 kB / 282.2 MB, free: 7.285 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.01776, allocations: 4.062 kB / 282.2 MB, free: 7.281 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.01791, allocations: 83.59 kB / 282.3 MB, free: 7.195 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.01822, allocations: 31.92 kB / 282.4 MB, free: 7.164 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006813/0.0189, allocations: 350.9 kB / 282.7 MB, free: 6.789 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.01904, allocations: 129.3 kB / 282.8 MB, free: 6.645 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.784e-05/0.01912, allocations: 17.95 kB / 282.8 MB, free: 6.629 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.871e-05/0.01919, allocations: 28.5 kB / 282.9 MB, free: 6.598 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01919, allocations: 0 / 282.9 MB, free: 6.598 MB / 266.7 MB Notification: Performance of Templates: time 0.005954/0.02514, allocations: 1.748 MB / 284.6 MB, free: 4.871 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","/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.341456720954739]