Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.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.001588/0.001588, allocations: 117.9 kB / 21.18 MB, free: 0.6289 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.001735/0.001735, allocations: 202.8 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.421/1.421, allocations: 230.4 MB / 258.1 MB, free: 8.148 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 75.81 kB / 378.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.285, allocations: 53.31 MB / 432 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003191/0.2882, allocations: 1.513 MB / 433.5 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008108/0.289, allocations: 287.2 kB / 433.8 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.2892, allocations: 0 / 433.8 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.2893, allocations: 23.69 kB / 433.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.406e-05/0.2894, allocations: 15.86 kB / 433.8 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004415/0.2898, allocations: 119.7 kB / 434 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004229/0.2903, allocations: 259.6 kB / 434.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003526/0.2906, allocations: 134.3 kB / 434.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.2908, allocations: 83.77 kB / 434.4 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001848/0.2909, allocations: 103.5 kB / 434.5 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.062e-05/0.291, allocations: 20 kB / 434.6 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.288e-05/0.2911, allocations: 31.98 kB / 434.6 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.534e-05/0.2911, allocations: 47.91 kB / 434.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.2913, allocations: 99.45 kB / 434.7 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003542/0.2916, allocations: 252.5 kB / 435 MB, free: 4.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2916, allocations: 0 / 435 MB, free: 4.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2916, allocations: 0 / 435 MB, free: 4.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.2916, allocations: 4 kB / 435 MB, free: 4.398 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007988/0.2924, allocations: 486.3 kB / 435.5 MB, free: 3.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.2925, allocations: 12.03 kB / 435.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002825/0.2928, allocations: 32.81 kB / 435.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.2931, allocations: 220.1 kB / 435.7 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.682e-05/0.2932, allocations: 24.88 kB / 435.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.065e-05/0.2932, allocations: 28.38 kB / 435.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004461/0.2936, allocations: 244 kB / 436 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2937, allocations: 192 / 436 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.2937, allocations: 15.92 kB / 436 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.2937, allocations: 4 kB / 436 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002916/0.294, allocations: 153.7 kB / 436.2 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.295, allocations: 0.6935 MB / 436.9 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.2954, allocations: 154.9 kB / 437 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.2955, allocations: 64.83 kB / 437.1 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.2955, allocations: 8 kB / 437.1 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002163/0.2957, allocations: 119.2 kB / 437.2 MB, free: 2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.2957, allocations: 4 kB / 437.2 MB, free: 1.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004516/0.2962, allocations: 216.9 kB / 437.4 MB, free: 1.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.2962, allocations: 55.41 kB / 437.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.2964, allocations: 152.6 kB / 437.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.2964, allocations: 37.7 kB / 437.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.2965, allocations: 128.9 kB / 437.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.618e-05/0.2966, allocations: 59.48 kB / 437.8 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.2967, allocations: 82 kB / 437.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2968, allocations: 326.8 kB / 438.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.2969, allocations: 64.56 kB / 438.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.2971, allocations: 128.1 kB / 438.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.2974, allocations: 179.1 kB / 438.6 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2974, allocations: 0 / 438.6 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003816/0.2978, allocations: 237.4 kB / 438.8 MB, free: 264 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.2978, allocations: 10.81 kB / 438.8 MB, free: 256 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.2978, allocations: 3.984 kB / 438.8 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.2978, allocations: 4 kB / 438.9 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.2979, allocations: 39.73 kB / 438.9 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.2979, allocations: 4 kB / 438.9 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.823e-05/0.298, allocations: 23.84 kB / 438.9 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.2981, allocations: 12 kB / 438.9 MB, free: 168 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001804/0.2982, allocations: 162 kB / 439.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/0.2983, allocations: 19.88 kB / 439.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.761e-05/0.2983, allocations: 12.84 kB / 439.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.2983, allocations: 4 kB / 439.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2983, allocations: 0 / 439.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.2983, allocations: 3.984 kB / 439.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007348/0.2991, allocations: 0.5491 MB / 439.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.2991, allocations: 7.984 kB / 439.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.192e-05/0.2992, allocations: 19.94 kB / 439.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.706e-06/0.2992, allocations: 0 / 439.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.2992, allocations: 8 kB / 439.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.2992, allocations: 0 / 439.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2992, allocations: 0 / 439.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003222/0.2995, allocations: 274.7 kB / 440 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.435e-05/0.2996, allocations: 85.06 kB / 440.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.2996, allocations: 0 / 440.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.2997, allocations: 15.98 kB / 440.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.876e-05/0.2998, allocations: 23.97 kB / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.2998, allocations: 7.938 kB / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.361e-05/0.2998, allocations: 99.27 kB / 440.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2998, allocations: 4 kB / 440.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.3001, allocations: 47.84 kB / 440.3 MB, free: 14.74 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000115/0.3002, allocations: 103.2 kB / 440.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003344/0.3006, allocations: 168.1 kB / 440.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3006, allocations: 0 / 440.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.3007, allocations: 67.91 kB / 440.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.301, allocations: 16 kB / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006153/0.3016, allocations: 353 kB / 441 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.302, allocations: 0.7327 MB / 441.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.153e-05/0.302, allocations: 23.44 kB / 441.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.302, allocations: 3.938 kB / 441.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of Templates: time 0.004414/0.3065, allocations: 2.199 MB / 443.9 MB, free: 11.02 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.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: 6.824510322883725]