Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001333/0.001333, allocations: 103.5 kB / 20.43 MB, free: 1.328 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.00138/0.00138, allocations: 180.1 kB / 23.7 MB, free: 4.52 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.424/1.424, allocations: 225.7 MB / 252.5 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 47.92 kB / 370.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.324, allocations: 52.19 MB / 423 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004765/0.3287, allocations: 1.643 MB / 424.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.3298, allocations: 287.2 kB / 425 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.3299, allocations: 7.938 kB / 425 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.3301, allocations: 27.67 kB / 425 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.825e-05/0.3302, allocations: 19.8 kB / 425 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005927/0.3308, allocations: 127.8 kB / 425.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005169/0.3313, allocations: 275.5 kB / 425.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003954/0.3317, allocations: 160.7 kB / 425.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.3318, allocations: 91.7 kB / 425.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002138/0.332, allocations: 95.45 kB / 425.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.348e-05/0.3321, allocations: 24 kB / 425.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.3322, allocations: 32 kB / 425.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.3323, allocations: 59.83 kB / 425.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.3325, allocations: 79.64 kB / 425.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005023/0.333, allocations: 257.5 kB / 426.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.829e-06/0.333, allocations: 8 kB / 426.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.333, allocations: 0 / 426.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.333, allocations: 0 / 426.2 MB, free: 11.31 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.00105/0.334, allocations: 429.1 kB / 426.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.3341, allocations: 12.03 kB / 426.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.64e-05/0.3342, allocations: 24.8 kB / 426.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004745/0.3347, allocations: 174.1 kB / 426.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.574e-05/0.3347, allocations: 20.88 kB / 426.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.379e-05/0.3348, allocations: 28.38 kB / 426.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007164/0.3355, allocations: 281.7 kB / 427.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3355, allocations: 192 / 427.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.3356, allocations: 11.94 kB / 427.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.3356, allocations: 8 kB / 427.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/0.3361, allocations: 169.6 kB / 427.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.3378, allocations: 0.8357 MB / 428.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004359/0.3383, allocations: 157 kB / 428.3 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.3385, allocations: 77.62 kB / 428.4 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.3385, allocations: 7.938 kB / 428.4 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003527/0.3389, allocations: 137 kB / 428.5 MB, free: 8.801 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.294e-06/0.3389, allocations: 0 / 428.5 MB, free: 8.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007109/0.3396, allocations: 224.8 kB / 428.8 MB, free: 8.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.801e-05/0.3397, allocations: 89.03 kB / 428.9 MB, free: 8.473 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.3399, allocations: 157.7 kB / 429 MB, free: 8.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.769e-05/0.34, allocations: 41.69 kB / 429 MB, free: 8.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.3401, allocations: 144.7 kB / 429.2 MB, free: 8.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.077e-05/0.3402, allocations: 51.59 kB / 429.2 MB, free: 8.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.3404, allocations: 85.62 kB / 429.3 MB, free: 7.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000225/0.3406, allocations: 331 kB / 429.6 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.3408, allocations: 63.97 kB / 429.7 MB, free: 7.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002898/0.3411, allocations: 140.5 kB / 429.8 MB, free: 7.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004459/0.3416, allocations: 192.2 kB / 430 MB, free: 7.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3416, allocations: 4 kB / 430 MB, free: 7.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006244/0.3422, allocations: 261.8 kB / 430.3 MB, free: 6.926 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.3422, allocations: 8 kB / 430.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.3422, allocations: 4 kB / 430.3 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.3423, allocations: 4 kB / 430.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.3425, allocations: 35.91 kB / 430.3 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.3425, allocations: 8.281 kB / 430.4 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.3426, allocations: 27.78 kB / 430.4 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.12e-05/0.3427, allocations: 12 kB / 430.4 MB, free: 6.828 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.0002308/0.3429, allocations: 169.6 kB / 430.6 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.3429, allocations: 11.95 kB / 430.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005071/0.3434, allocations: 194.5 kB / 430.8 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.3435, allocations: 7.938 kB / 430.8 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3435, allocations: 0 / 430.8 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3435, allocations: 0 / 430.8 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.3446, allocations: 0.5124 MB / 431.3 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.3446, allocations: 4 kB / 431.3 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.3448, allocations: 15.92 kB / 431.3 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.3448, allocations: 4 kB / 431.3 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.3448, allocations: 4 kB / 431.3 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.3448, allocations: 4 kB / 431.3 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.3448, allocations: 3.938 kB / 431.3 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005384/0.3453, allocations: 292.5 kB / 431.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.071e-05/0.3454, allocations: 23.84 kB / 431.6 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.3454, allocations: 3.984 kB / 431.6 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.3456, allocations: 12 kB / 431.6 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.3457, allocations: 27.89 kB / 431.7 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.3457, allocations: 12 kB / 431.7 MB, free: 5.461 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001021/0.3458, allocations: 99.27 kB / 431.8 MB, free: 5.363 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3458, allocations: 0 / 431.8 MB, free: 5.363 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005183/0.3463, allocations: 51.89 kB / 431.8 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,step.active,transition1.enableFire,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.0002621/0.3466, allocations: 110.9 kB / 431.9 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005537/0.3472, allocations: 172.3 kB / 432.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3472, allocations: 0 / 432.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002206/0.3474, allocations: 75.91 kB / 432.2 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.0005458/0.3479, allocations: 27.91 kB / 432.2 MB, free: 4.926 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.349, allocations: 364 kB / 432.6 MB, free: 4.543 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.3492, allocations: 129.4 kB / 432.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.3493, allocations: 21.94 kB / 432.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.3494, allocations: 27.44 kB / 432.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3494, allocations: 0 / 432.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of Templates: time 0.008958/0.3584, allocations: 2.036 MB / 434.8 MB, free: 2.344 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.57950022816658]