Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001516/0.001516, allocations: 117 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.001779/0.001779, allocations: 209.3 kB / 24.47 MB, free: 3.898 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.45/1.45, allocations: 230.4 MB / 258.1 MB, free: 8.145 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2") [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.001941/0.001941, allocations: 63.91 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2911, allocations: 53.31 MB / 432 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003094/0.2942, allocations: 1.687 MB / 433.7 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007382/0.2949, allocations: 307.1 kB / 434 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.295, allocations: 4 kB / 434 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.2952, allocations: 23.67 kB / 434 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.302e-05/0.2952, allocations: 23.8 kB / 434.1 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.2956, allocations: 119.8 kB / 434.2 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003574/0.296, allocations: 271.5 kB / 434.4 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003195/0.2963, allocations: 158.9 kB / 434.6 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.2964, allocations: 91.7 kB / 434.7 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.2966, allocations: 103.5 kB / 434.8 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.52e-05/0.2966, allocations: 20 kB / 434.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.549e-05/0.2967, allocations: 31.98 kB / 434.8 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.541e-05/0.2968, allocations: 59.83 kB / 434.9 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.2969, allocations: 107.5 kB / 435 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003592/0.2973, allocations: 268.4 kB / 435.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2973, allocations: 0 / 435.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2973, allocations: 0 / 435.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.2973, allocations: 4 kB / 435.3 MB, free: 4.129 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007663/0.298, allocations: 0.4905 MB / 435.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.2981, allocations: 8.031 kB / 435.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000269/0.2983, allocations: 36.78 kB / 435.8 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/0.2987, allocations: 228.1 kB / 436 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/0.2987, allocations: 20.94 kB / 436 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.19e-05/0.2988, allocations: 28.38 kB / 436.1 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00046/0.2992, allocations: 274.5 kB / 436.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.2992, allocations: 192 / 436.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.2993, allocations: 15.94 kB / 436.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.2993, allocations: 4 kB / 436.4 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003053/0.2996, allocations: 161.6 kB / 436.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.3008, allocations: 0.9596 MB / 437.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.3011, allocations: 165.4 kB / 437.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.3012, allocations: 77.56 kB / 437.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.3012, allocations: 4 kB / 437.7 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/0.3014, allocations: 132.5 kB / 437.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.532e-06/0.3014, allocations: 0 / 437.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004562/0.3019, allocations: 225.3 kB / 438.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.859e-05/0.302, allocations: 81.11 kB / 438.1 MB, free: 1.012 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.3021, allocations: 156.4 kB / 438.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.3021, allocations: 41.69 kB / 438.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.3023, allocations: 144.7 kB / 438.5 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.661e-05/0.3023, allocations: 59.53 kB / 438.5 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.3024, allocations: 81.62 kB / 438.6 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3026, allocations: 334.9 kB / 438.9 MB, free: 180 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.3027, allocations: 67.75 kB / 439 MB, free: 112 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.3029, allocations: 136.5 kB / 439.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002736/0.3032, allocations: 192.3 kB / 439.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3032, allocations: 7.938 kB / 439.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003971/0.3036, allocations: 249.3 kB / 439.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.3036, allocations: 8 kB / 439.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.3036, allocations: 0 / 439.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.3036, allocations: 4 kB / 439.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.3038, allocations: 39.86 kB / 439.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.3038, allocations: 12.27 kB / 439.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.3039, allocations: 27.84 kB / 439.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.3039, allocations: 8 kB / 439.7 MB, free: 15.37 MB / 350.1 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.0001625/0.3041, allocations: 165.6 kB / 439.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.478e-05/0.3041, allocations: 11.95 kB / 439.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.26e-05/0.3041, allocations: 16.84 kB / 439.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.3042, allocations: 4 kB / 439.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3042, allocations: 0 / 439.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.3042, allocations: 7.984 kB / 439.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007457/0.3049, allocations: 0.5791 MB / 440.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3049, allocations: 0 / 440.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.073e-05/0.305, allocations: 15.94 kB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.305, allocations: 0 / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.305, allocations: 11.98 kB / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.826e-06/0.305, allocations: 7.875 kB / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.305, allocations: 0 / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003239/0.3053, allocations: 286.9 kB / 440.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.788e-05/0.3054, allocations: 93 kB / 440.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.382e-05/0.3054, allocations: 0 / 440.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.606e-05/0.3055, allocations: 11.94 kB / 440.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.08e-05/0.3056, allocations: 23.97 kB / 440.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.3056, allocations: 4 kB / 440.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.604e-05/0.3057, allocations: 103.2 kB / 441 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3057, allocations: 4 kB / 441 MB, free: 13.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.306, allocations: 47.89 kB / 441.1 MB, free: 13.89 MB / 350.1 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.0001539/0.3061, allocations: 107.2 kB / 441.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.3065, allocations: 176 kB / 441.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3065, allocations: 0 / 441.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001524/0.3066, allocations: 64.34 kB / 441.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.307, allocations: 26.86 kB / 441.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007255/0.3077, allocations: 381.1 kB / 441.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.3081, allocations: 0.7365 MB / 442.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.221e-05/0.3082, allocations: 23.44 kB / 442.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3082, allocations: 0 / 442.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of Templates: time 0.004552/0.3127, allocations: 2.272 MB / 444.8 MB, free: 10.05 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 6.875464200973511]