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.001697/0.001697, allocations: 100 kB / 21.18 MB, free: 0.6484 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.00188/0.00188, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.486/1.486, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.001624/0.001624, allocations: 47.92 kB / 371.6 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3076, allocations: 52.17 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003288/0.3109, allocations: 1.686 MB / 425.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007164/0.3116, allocations: 295.2 kB / 425.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.212e-05/0.3117, allocations: 4 kB / 425.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.3118, allocations: 23.67 kB / 425.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.745e-05/0.3119, allocations: 15.81 kB / 425.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004251/0.3123, allocations: 131.8 kB / 425.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000327/0.3127, allocations: 267.5 kB / 426.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002833/0.3129, allocations: 149.6 kB / 426.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.313, allocations: 91.72 kB / 426.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.3132, allocations: 91.52 kB / 426.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.237e-05/0.3132, allocations: 24 kB / 426.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.573e-05/0.3133, allocations: 24 kB / 426.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.545e-05/0.3134, allocations: 63.77 kB / 426.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.3135, allocations: 83.58 kB / 426.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003213/0.3138, allocations: 261.9 kB / 427 MB, free: 11.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3138, allocations: 4 kB / 427 MB, free: 11.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3138, allocations: 0 / 427 MB, free: 11.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.3138, allocations: 0 / 427 MB, free: 11.3 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.0006838/0.3145, allocations: 425.1 kB / 427.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.3145, allocations: 8.031 kB / 427.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.234e-05/0.3146, allocations: 24.8 kB / 427.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003191/0.3149, allocations: 182.2 kB / 427.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.3149, allocations: 20.88 kB / 427.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.299e-05/0.315, allocations: 28.31 kB / 427.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/0.3155, allocations: 273.8 kB / 427.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.3155, allocations: 4.188 kB / 427.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/0.3155, allocations: 15.94 kB / 427.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3155, allocations: 4 kB / 427.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003074/0.3158, allocations: 169.5 kB / 428.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.3169, allocations: 0.8357 MB / 428.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.3172, allocations: 161.2 kB / 429.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.3174, allocations: 77.72 kB / 429.2 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.3174, allocations: 4 kB / 429.2 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002539/0.3176, allocations: 140.5 kB / 429.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.502e-06/0.3176, allocations: 0 / 429.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005144/0.3182, allocations: 221.4 kB / 429.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.3182, allocations: 85.11 kB / 429.6 MB, free: 8.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001637/0.3184, allocations: 155.9 kB / 429.8 MB, free: 8.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.412e-05/0.3184, allocations: 37.7 kB / 429.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.3186, allocations: 140.8 kB / 429.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.691e-05/0.3186, allocations: 67.47 kB / 430 MB, free: 8.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.3188, allocations: 81.62 kB / 430.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3189, allocations: 330.8 kB / 430.4 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.319, allocations: 68.09 kB / 430.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.3192, allocations: 132.5 kB / 430.6 MB, free: 7.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.3195, allocations: 196.2 kB / 430.8 MB, free: 7.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3195, allocations: 4 kB / 430.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004088/0.3199, allocations: 257.8 kB / 431.1 MB, free: 6.926 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3199, allocations: 8 kB / 431.1 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3199, allocations: 0 / 431.1 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.32, allocations: 4 kB / 431.1 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.3201, allocations: 35.92 kB / 431.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.3201, allocations: 4.281 kB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.3202, allocations: 39.77 kB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.3203, allocations: 12 kB / 431.2 MB, free: 6.824 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.0001664/0.3204, allocations: 169.6 kB / 431.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.726e-05/0.3205, allocations: 15.91 kB / 431.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003641/0.3208, allocations: 194.4 kB / 431.5 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3208, allocations: 4 kB / 431.5 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3208, allocations: 0 / 431.5 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3209, allocations: 0 / 431.5 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007559/0.3216, allocations: 0.5124 MB / 432 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.3216, allocations: 4 kB / 432 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.431e-05/0.3217, allocations: 15.94 kB / 432.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3217, allocations: 0 / 432.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.3217, allocations: 11.98 kB / 432.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.3217, allocations: 0 / 432.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3217, allocations: 3.938 kB / 432.1 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003472/0.3221, allocations: 296.4 kB / 432.4 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.292e-05/0.3221, allocations: 15.84 kB / 432.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.3221, allocations: 8 kB / 432.4 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.353e-05/0.3222, allocations: 3.984 kB / 432.4 MB, free: 5.504 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.847e-05/0.3223, allocations: 31.91 kB / 432.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.3223, allocations: 8 kB / 432.4 MB, free: 5.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.784e-05/0.3224, allocations: 99.2 kB / 432.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3224, allocations: 0 / 432.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.3227, allocations: 55.88 kB / 432.6 MB, free: 5.312 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.0001542/0.3229, allocations: 107 kB / 432.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003552/0.3232, allocations: 176.2 kB / 432.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3232, allocations: 4.125 kB / 432.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.3233, allocations: 71.91 kB / 432.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.3237, allocations: 23.98 kB / 433 MB, free: 4.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006561/0.3243, allocations: 373.9 kB / 433.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.3244, allocations: 129.3 kB / 433.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.648e-05/0.3245, allocations: 23.44 kB / 433.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3245, allocations: 0 / 433.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of Templates: time 0.004707/0.3292, allocations: 2.472 MB / 435.9 MB, free: 1.895 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/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: 7.099996530916542]