Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001754/0.001754, allocations: 109.4 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001528/0.001528, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.564/1.564, allocations: 230.4 MB / 251.1 MB, free: 8.473 MB / 206.1 MB 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.002027/0.002027, allocations: 71.83 kB / 368.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3206, allocations: 53.33 MB / 422.2 MB, free: 7.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003177/0.3237, allocations: 1.714 MB / 424 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008726/0.3246, allocations: 283.2 kB / 424.2 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.3247, allocations: 11.94 kB / 424.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.3249, allocations: 27.67 kB / 424.3 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.414e-05/0.3249, allocations: 27.73 kB / 424.3 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.3253, allocations: 115.8 kB / 424.4 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003637/0.3257, allocations: 267.5 kB / 424.7 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000306/0.326, allocations: 161.5 kB / 424.8 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.3261, allocations: 83.72 kB / 424.9 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.3263, allocations: 111.5 kB / 425 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.814e-05/0.3263, allocations: 24 kB / 425.1 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.712e-05/0.3264, allocations: 24 kB / 425.1 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.785e-05/0.3265, allocations: 63.81 kB / 425.1 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.3266, allocations: 99.53 kB / 425.2 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.327, allocations: 254.5 kB / 425.5 MB, free: 4.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.327, allocations: 0 / 425.5 MB, free: 4.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.327, allocations: 4 kB / 425.5 MB, free: 4.621 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.327, allocations: 0 / 425.5 MB, free: 4.621 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.0007492/0.3277, allocations: 494.4 kB / 426 MB, free: 4.086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.3278, allocations: 15.97 kB / 426 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002823/0.3281, allocations: 36.77 kB / 426 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005363/0.3286, allocations: 236.1 kB / 426.3 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.833e-05/0.3286, allocations: 24.94 kB / 426.3 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.3287, allocations: 28.38 kB / 426.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006364/0.3293, allocations: 274.5 kB / 426.6 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.3293, allocations: 192 / 426.6 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.7e-05/0.3294, allocations: 11.94 kB / 426.6 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.3294, allocations: 4 kB / 426.6 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003108/0.3297, allocations: 161.6 kB / 426.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.3311, allocations: 0.9596 MB / 427.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.3314, allocations: 165.4 kB / 427.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.3315, allocations: 73.56 kB / 427.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.3315, allocations: 4 kB / 427.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.3317, allocations: 137 kB / 428.1 MB, free: 1.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.303e-06/0.3317, allocations: 4 kB / 428.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004323/0.3322, allocations: 220.8 kB / 428.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.744e-05/0.3322, allocations: 81.11 kB / 428.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.3324, allocations: 157.1 kB / 428.5 MB, free: 1.336 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.734e-05/0.3324, allocations: 37.7 kB / 428.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.3325, allocations: 148.7 kB / 428.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.77e-05/0.3326, allocations: 59.52 kB / 428.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.3327, allocations: 85.53 kB / 428.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.3329, allocations: 338.8 kB / 429.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.333, allocations: 59.97 kB / 429.2 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.3332, allocations: 140.5 kB / 429.4 MB, free: 440 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.3335, allocations: 196.3 kB / 429.6 MB, free: 212 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3335, allocations: 0 / 429.6 MB, free: 212 kB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000398/0.3339, allocations: 245.3 kB / 429.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3339, allocations: 4 kB / 429.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3339, allocations: 4 kB / 429.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.3339, allocations: 4 kB / 429.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.3341, allocations: 36.2 kB / 429.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/0.3341, allocations: 11.92 kB / 429.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.3342, allocations: 27.83 kB / 429.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.3342, allocations: 16 kB / 429.9 MB, free: 15.86 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.0001573/0.3344, allocations: 153.7 kB / 430.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.064e-05/0.3344, allocations: 19.89 kB / 430.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.825e-05/0.3344, allocations: 12.84 kB / 430.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3344, allocations: 4 kB / 430.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3344, allocations: 4 kB / 430.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.3345, allocations: 4 kB / 430.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007941/0.3353, allocations: 0.5713 MB / 430.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3353, allocations: 0 / 430.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.528e-05/0.3353, allocations: 23.92 kB / 430.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.553e-06/0.3353, allocations: 7.984 kB / 430.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.3353, allocations: 0 / 430.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.3354, allocations: 7.938 kB / 430.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3354, allocations: 7.938 kB / 430.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005046/0.3359, allocations: 279 kB / 431 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.632e-05/0.3359, allocations: 89 kB / 431.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/0.3359, allocations: 8 kB / 431.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.434e-05/0.336, allocations: 11.92 kB / 431.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.345e-05/0.3361, allocations: 23.97 kB / 431.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.3361, allocations: 7.938 kB / 431.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.097e-05/0.3362, allocations: 99.27 kB / 431.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3362, allocations: 0 / 431.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002904/0.3365, allocations: 51.84 kB / 431.3 MB, free: 14.38 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,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.0001277/0.3366, allocations: 99.25 kB / 431.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004044/0.337, allocations: 172 kB / 431.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.337, allocations: 4.562 kB / 431.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.3372, allocations: 79.75 kB / 431.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.3375, allocations: 23.92 kB / 431.6 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006622/0.3381, allocations: 324.4 kB / 432 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004331/0.3386, allocations: 0.7405 MB / 432.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.43e-05/0.3386, allocations: 17.95 kB / 432.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.236e-05/0.3387, allocations: 19.44 kB / 432.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3387, allocations: 0 / 432.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Templates: time 0.005417/0.3441, allocations: 1.749 MB / 434.5 MB, free: 11.1 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches