Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 189.6 kB / 23.72 MB, free: 4.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.589/1.589, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 43.92 kB / 370.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2887, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003527/0.2922, allocations: 1.725 MB / 424.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008708/0.2931, allocations: 291.2 kB / 425.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.2932, allocations: 4 kB / 425.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.2933, allocations: 27.67 kB / 425.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.592e-05/0.2934, allocations: 19.8 kB / 425.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004509/0.2939, allocations: 135.7 kB / 425.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003709/0.2942, allocations: 271.5 kB / 425.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003064/0.2945, allocations: 149.9 kB / 425.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002324/0.2948, allocations: 91.72 kB / 425.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.2949, allocations: 95.59 kB / 425.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.421e-05/0.295, allocations: 24 kB / 425.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.312e-05/0.2951, allocations: 39.92 kB / 425.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.968e-05/0.2952, allocations: 55.89 kB / 426 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.2953, allocations: 111.4 kB / 426.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.2956, allocations: 256.2 kB / 426.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2957, allocations: 0 / 426.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2957, allocations: 0 / 426.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.2957, allocations: 0 / 426.4 MB, free: 11.43 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.0009105/0.2966, allocations: 421.2 kB / 426.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.2966, allocations: 8.031 kB / 426.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.542e-05/0.2967, allocations: 28.73 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004337/0.2971, allocations: 170.3 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.869e-05/0.2972, allocations: 32.8 kB / 427 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.002e-05/0.2972, allocations: 28.38 kB / 427 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005222/0.2977, allocations: 269.8 kB / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.2978, allocations: 4.188 kB / 427.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.523e-05/0.2978, allocations: 15.92 kB / 427.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.2978, allocations: 12 kB / 427.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003186/0.2981, allocations: 161.6 kB / 427.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.2997, allocations: 0.9248 MB / 428.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003103/0.3, allocations: 165.4 kB / 428.6 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.3001, allocations: 81.12 kB / 428.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.3002, allocations: 0 / 428.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.3004, allocations: 140.5 kB / 428.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.3004, allocations: 0 / 428.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005957/0.301, allocations: 217.4 kB / 429 MB, free: 8.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/0.3011, allocations: 81.11 kB / 429.1 MB, free: 8.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001953/0.3012, allocations: 160.8 kB / 429.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.3013, allocations: 37.7 kB / 429.3 MB, free: 8.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.3014, allocations: 140.9 kB / 429.4 MB, free: 8.152 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.921e-05/0.3015, allocations: 71.47 kB / 429.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.3016, allocations: 81.67 kB / 429.6 MB, free: 7.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002831/0.3019, allocations: 326.8 kB / 429.9 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.3021, allocations: 71.91 kB / 429.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.3023, allocations: 144.5 kB / 430.1 MB, free: 7.426 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004047/0.3027, allocations: 192.8 kB / 430.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.3027, allocations: 7.938 kB / 430.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007448/0.3034, allocations: 253.6 kB / 430.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3035, allocations: 15.41 kB / 430.5 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3035, allocations: 4 kB / 430.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.3035, allocations: 4 kB / 430.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.3036, allocations: 31.92 kB / 430.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.3036, allocations: 4 kB / 430.6 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.3038, allocations: 27.83 kB / 430.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.493e-05/0.3038, allocations: 16 kB / 430.6 MB, free: 6.848 MB / 334.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.0001608/0.3039, allocations: 165.7 kB / 430.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.304, allocations: 15.91 kB / 430.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003729/0.3043, allocations: 190.4 kB / 431 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3044, allocations: 4 kB / 431 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3044, allocations: 0 / 431 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3044, allocations: 7.984 kB / 431 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007785/0.3051, allocations: 0.5626 MB / 431.6 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3051, allocations: 0 / 431.6 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.62e-05/0.3052, allocations: 23.92 kB / 431.6 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3052, allocations: 4 kB / 431.6 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.3053, allocations: 11.94 kB / 431.6 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3053, allocations: 0 / 431.6 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3053, allocations: 0 / 431.6 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004412/0.3057, allocations: 288.4 kB / 431.9 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.818e-05/0.3057, allocations: 11.94 kB / 431.9 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.645e-05/0.3058, allocations: 15.94 kB / 431.9 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.829e-05/0.3058, allocations: 12 kB / 431.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.386e-05/0.3059, allocations: 23.95 kB / 431.9 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3059, allocations: 4 kB / 432 MB, free: 5.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.143e-05/0.306, allocations: 95.27 kB / 432 MB, free: 5.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.306, allocations: 0 / 432 MB, free: 5.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.3063, allocations: 63.72 kB / 432.1 MB, free: 5.273 MB / 334.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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0001581/0.3065, allocations: 111 kB / 432.2 MB, free: 5.156 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003516/0.3068, allocations: 171.8 kB / 432.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3068, allocations: 0 / 432.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.307, allocations: 71.91 kB / 432.5 MB, free: 4.918 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000293/0.3073, allocations: 35.86 kB / 432.5 MB, free: 4.883 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008004/0.3081, allocations: 348.8 kB / 432.8 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.3086, allocations: 0.7402 MB / 433.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.508e-05/0.3087, allocations: 29.92 kB / 433.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.214e-05/0.3087, allocations: 27.38 kB / 433.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3087, allocations: 0 / 433.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of Templates: time 0.006273/0.315, allocations: 2.02 MB / 435.6 MB, free: 1.684 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.743454824201763]