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.004054/0.004054, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001634/0.005688, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001105/0.001105, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001448/0.002553, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.025/1.025, allocations: 177.4 MB / 189.9 MB, free: 4.828 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08644/1.112, allocations: 53.85 MB / 243.7 MB, free: 14.91 MB / 250.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.473e-06/1.473e-06, allocations: 0 / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.55e-05/1.697e-05, allocations: 5.828 kB / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001919/0.001936, allocations: 1.751 MB / 246.7 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004543/0.00239, allocations: 307 kB / 247 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.142e-05/0.002471, allocations: 8 kB / 247 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.807e-05/0.00255, allocations: 27.67 kB / 247.1 MB, free: 11.58 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.464e-05/0.002584, allocations: 23.8 kB / 247.1 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.002845, allocations: 127.7 kB / 247.2 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002373/0.003082, allocations: 275.4 kB / 247.5 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.003317, allocations: 166.3 kB / 247.7 MB, free: 11 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.003439, allocations: 139.7 kB / 247.8 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.003552, allocations: 71.77 kB / 247.9 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.909e-05/0.003581, allocations: 24 kB / 247.9 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.385e-05/0.003644, allocations: 24 kB / 247.9 MB, free: 10.74 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.979e-05/0.003694, allocations: 51.8 kB / 248 MB, free: 10.69 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.416e-05/0.003748, allocations: 47.94 kB / 248 MB, free: 10.64 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.003955, allocations: 179.2 kB / 248.2 MB, free: 10.47 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.273e-05/0.003968, allocations: 0 / 248.2 MB, free: 10.47 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.82e-07/0.003969, allocations: 0 / 248.2 MB, free: 10.47 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.003982, allocations: 4 kB / 248.2 MB, free: 10.46 MB / 250.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.0005025/0.004484, allocations: 443.4 kB / 248.6 MB, free: 10 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.902e-05/0.004513, allocations: 8.031 kB / 248.6 MB, free: 9.996 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.004684, allocations: 122 kB / 248.7 MB, free: 9.859 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.004844, allocations: 153.4 kB / 248.9 MB, free: 9.684 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.00487, allocations: 20.88 kB / 248.9 MB, free: 9.664 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.004892, allocations: 28.38 kB / 248.9 MB, free: 9.637 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.005098, allocations: 222.5 kB / 249.2 MB, free: 9.395 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.005111, allocations: 192 / 249.2 MB, free: 9.395 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.005126, allocations: 20.31 kB / 249.2 MB, free: 9.375 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.005132, allocations: 4.375 kB / 249.2 MB, free: 9.371 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.181e-05/0.005224, allocations: 75.33 kB / 249.3 MB, free: 9.297 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000644/0.005868, allocations: 0.7232 MB / 250 MB, free: 8.543 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.006021, allocations: 109.2 kB / 250.1 MB, free: 8.418 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.468e-05/0.006066, allocations: 41.7 kB / 250.1 MB, free: 8.371 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.006088, allocations: 4 kB / 250.1 MB, free: 8.367 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001295/0.006217, allocations: 120.8 kB / 250.2 MB, free: 8.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.262e-06/0.006218, allocations: 4 kB / 250.3 MB, free: 8.227 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001787/0.006397, allocations: 139 kB / 250.4 MB, free: 8.086 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.006441, allocations: 85.11 kB / 250.5 MB, free: 7.984 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.69e-05/0.006518, allocations: 166.4 kB / 250.6 MB, free: 7.809 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.006539, allocations: 37.69 kB / 250.7 MB, free: 7.766 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.712e-05/0.006596, allocations: 136.8 kB / 250.8 MB, free: 7.629 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.392e-05/0.00663, allocations: 63.52 kB / 250.9 MB, free: 7.566 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.201e-05/0.006692, allocations: 81.62 kB / 250.9 MB, free: 7.48 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.728e-05/0.006769, allocations: 330.8 kB / 251.3 MB, free: 7.148 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.06e-05/0.006799, allocations: 31.77 kB / 251.3 MB, free: 7.117 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.664e-05/0.006866, allocations: 112.6 kB / 251.4 MB, free: 6.977 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.00698, allocations: 152.4 kB / 251.6 MB, free: 6.797 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.006983, allocations: 0 / 251.6 MB, free: 6.797 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001584/0.007141, allocations: 181.3 kB / 251.7 MB, free: 6.613 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.007158, allocations: 7.938 kB / 251.7 MB, free: 6.605 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.007167, allocations: 7.984 kB / 251.8 MB, free: 6.598 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.007177, allocations: 4 kB / 251.8 MB, free: 6.594 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.007301, allocations: 39.86 kB / 251.8 MB, free: 6.555 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.007305, allocations: 4 kB / 251.8 MB, free: 6.551 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.78e-05/0.007363, allocations: 40.05 kB / 251.8 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.007373, allocations: 8 kB / 251.8 MB, free: 6.504 MB / 250.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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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 9.438e-05/0.007468, allocations: 141.8 kB / 252 MB, free: 6.355 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.832e-05/0.007486, allocations: 19.98 kB / 252 MB, free: 6.336 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.00752, allocations: 20.81 kB / 252 MB, free: 6.316 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.007523, allocations: 4 kB / 252 MB, free: 6.312 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.007525, allocations: 0 / 252 MB, free: 6.312 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.007531, allocations: 3.984 kB / 252 MB, free: 6.309 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003145/0.007845, allocations: 370.9 kB / 252.4 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.007847, allocations: 0 / 252.4 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.547e-05/0.007893, allocations: 23.98 kB / 252.4 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.325e-05/0.007906, allocations: 15.84 kB / 252.4 MB, free: 5.875 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.007908, allocations: 0 / 252.4 MB, free: 5.875 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.007917, allocations: 8 kB / 252.4 MB, free: 5.867 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.007919, allocations: 0 / 252.4 MB, free: 5.867 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.007921, allocations: 0 / 252.4 MB, free: 5.867 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001271/0.008048, allocations: 220.3 kB / 252.7 MB, free: 5.633 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.008065, allocations: 8 kB / 252.7 MB, free: 5.625 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.92e-05/0.008104, allocations: 4 kB / 252.7 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.052e-05/0.008155, allocations: 23.95 kB / 252.7 MB, free: 5.598 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.008161, allocations: 8 kB / 252.7 MB, free: 5.59 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.751e-05/0.008178, allocations: 24.08 kB / 252.7 MB, free: 5.566 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008178, allocations: 0 / 252.7 MB, free: 5.566 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000165/0.008343, allocations: 47.89 kB / 252.8 MB, free: 5.52 MB / 250.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 6.698e-05/0.00841, allocations: 84.36 kB / 252.9 MB, free: 5.43 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001395/0.00855, allocations: 132.5 kB / 253 MB, free: 5.297 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.008557, allocations: 4.562 kB / 253 MB, free: 5.293 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.288e-05/0.00861, allocations: 64.7 kB / 253 MB, free: 5.227 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.008751, allocations: 39.19 kB / 253.1 MB, free: 5.191 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000461/0.009212, allocations: 329.9 kB / 253.4 MB, free: 4.844 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.187e-05/0.009254, allocations: 80.33 kB / 253.5 MB, free: 4.746 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.126e-05/0.009305, allocations: 22 kB / 253.5 MB, free: 4.723 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.494e-05/0.00938, allocations: 83.38 kB / 253.6 MB, free: 4.641 MB / 250.7 MB Notification: Performance of SimCode: time 5.11e-07/0.00938, allocations: 3.938 kB / 253.6 MB, free: 4.637 MB / 250.7 MB Notification: Performance of Templates: time 0.00339/0.01277, allocations: 1.944 MB / 255.5 MB, free: 2.723 MB / 250.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 -ignoreHideResult -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.526753910817206]