Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 84.34 kB / 20.95 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 165.3 kB / 24.27 MB, free: 148 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.538/1.538, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.694e-05/2.832e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003179/0.003207, allocations: 1.705 MB / 274 MB, free: 152 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007511/0.003958, allocations: 291.2 kB / 274.3 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.94e-05/0.004047, allocations: 11.94 kB / 274.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.004199, allocations: 27.67 kB / 274.3 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.957e-05/0.004259, allocations: 19.69 kB / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004359/0.004695, allocations: 127.7 kB / 274.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003763/0.005071, allocations: 275.5 kB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002887/0.00536, allocations: 158 kB / 274.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.005552, allocations: 139.7 kB / 275 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.00569, allocations: 71.78 kB / 275.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.831e-05/0.005728, allocations: 24 kB / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.74e-05/0.005806, allocations: 31.98 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.562e-05/0.005881, allocations: 55.81 kB / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.005982, allocations: 71.81 kB / 275.3 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003562/0.006338, allocations: 263 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.006343, allocations: 8 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.006343, allocations: 0 / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.006348, allocations: 0 / 275.5 MB, free: 14.61 MB / 266.7 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.0007574/0.007106, allocations: 417.2 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.007142, allocations: 12.03 kB / 275.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.007481, allocations: 60.77 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.007806, allocations: 165.5 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.154e-05/0.007848, allocations: 20.88 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.159e-05/0.007889, allocations: 28.38 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005256/0.008415, allocations: 273.8 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.008427, allocations: 192 / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.001e-05/0.008457, allocations: 12.38 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.008466, allocations: 4.375 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003409/0.008807, allocations: 165.8 kB / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.01008, allocations: 0.836 MB / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003423/0.01042, allocations: 157.4 kB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.01055, allocations: 69.69 kB / 277.7 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.983e-05/0.01058, allocations: 11.92 kB / 277.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.01084, allocations: 141 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.202e-06/0.01084, allocations: 0 / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000508/0.01135, allocations: 226.4 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.99e-05/0.01143, allocations: 89.23 kB / 278.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.01158, allocations: 153.7 kB / 278.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/0.01162, allocations: 37.7 kB / 278.4 MB, free: 11.56 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.01175, allocations: 144.8 kB / 278.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.311e-05/0.01181, allocations: 59.52 kB / 278.6 MB, free: 11.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.01193, allocations: 81.64 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.01211, allocations: 330.8 kB / 279 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.01225, allocations: 63.91 kB / 279 MB, free: 10.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.01245, allocations: 136.5 kB / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002994/0.01275, allocations: 188.8 kB / 279.3 MB, free: 10.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.01275, allocations: 4 kB / 279.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004628/0.01322, allocations: 281.3 kB / 279.6 MB, free: 10.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.01323, allocations: 4 kB / 279.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.01324, allocations: 4 kB / 279.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.01326, allocations: 4 kB / 279.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.01341, allocations: 31.92 kB / 279.7 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.01342, allocations: 4 kB / 279.7 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.01354, allocations: 35.77 kB / 279.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.01357, allocations: 12 kB / 279.7 MB, free: 10.11 MB / 266.7 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.0001928/0.01376, allocations: 157.8 kB / 279.9 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.0138, allocations: 27.88 kB / 279.9 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.239e-05/0.01385, allocations: 20.94 kB / 279.9 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.01386, allocations: 4 kB / 279.9 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.01387, allocations: 0 / 279.9 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.01387, allocations: 0 / 279.9 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007899/0.01466, allocations: 499.3 kB / 280.4 MB, free: 9.375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.01467, allocations: 7.938 kB / 280.4 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.862e-05/0.01473, allocations: 8 kB / 280.4 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.01474, allocations: 4 kB / 280.4 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.01476, allocations: 7.984 kB / 280.4 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.01477, allocations: 8 kB / 280.4 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.01477, allocations: 3.938 kB / 280.5 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003995/0.01517, allocations: 280.1 kB / 280.7 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.0152, allocations: 19.83 kB / 280.7 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.01523, allocations: 8 kB / 280.8 MB, free: 9.016 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.997e-05/0.01533, allocations: 8 kB / 280.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.26e-05/0.01541, allocations: 19.95 kB / 280.8 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.01543, allocations: 11.98 kB / 280.8 MB, free: 8.977 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.319e-05/0.01551, allocations: 95.27 kB / 280.9 MB, free: 8.883 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01551, allocations: 0 / 280.9 MB, free: 8.883 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003131/0.01582, allocations: 51.89 kB / 280.9 MB, free: 8.832 MB / 266.7 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,transition1.enableFire,step.active,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.0001433/0.01597, allocations: 107.1 kB / 281 MB, free: 8.715 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003533/0.01632, allocations: 166.9 kB / 281.2 MB, free: 8.555 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.01632, allocations: 0 / 281.2 MB, free: 8.555 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.01646, allocations: 79.7 kB / 281.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.01678, allocations: 24.61 kB / 281.3 MB, free: 8.453 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006759/0.01746, allocations: 338.4 kB / 281.6 MB, free: 8.094 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001411/0.0176, allocations: 125.2 kB / 281.8 MB, free: 7.953 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.481e-05/0.01767, allocations: 21.95 kB / 281.8 MB, free: 7.934 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.666e-05/0.01774, allocations: 24.5 kB / 281.8 MB, free: 7.906 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01774, allocations: 4 kB / 281.8 MB, free: 7.902 MB / 266.7 MB Notification: Performance of Templates: time 0.005385/0.02312, allocations: 1.749 MB / 283.6 MB, free: 6.184 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.384632371948101]