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.001718/0.001718, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 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.002137/0.002137, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 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.691/1.691, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 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 0.001723/0.001723, allocations: 43.92 kB / 373.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1496, allocations: 53.32 MB / 426.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00335/0.1529, allocations: 1.725 MB / 428.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008094/0.1537, allocations: 287.1 kB / 428.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.1538, allocations: 4 kB / 428.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.154, allocations: 27.67 kB / 428.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.23e-05/0.154, allocations: 19.8 kB / 428.8 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.1545, allocations: 119.8 kB / 428.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003646/0.1548, allocations: 267.5 kB / 429.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003029/0.1551, allocations: 161.5 kB / 429.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.1553, allocations: 91.7 kB / 429.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.1554, allocations: 99.58 kB / 429.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.712e-05/0.1555, allocations: 28 kB / 429.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.212e-05/0.1556, allocations: 35.94 kB / 429.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.792e-05/0.1557, allocations: 55.83 kB / 429.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.1558, allocations: 107.5 kB / 429.8 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000358/0.1561, allocations: 254.9 kB / 430 MB, free: 1.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1562, allocations: 0 / 430 MB, free: 1.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1562, allocations: 0 / 430 MB, free: 1.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.1562, allocations: 0 / 430 MB, free: 1.047 MB / 350.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.0007897/0.157, allocations: 498.4 kB / 430.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.157, allocations: 8.031 kB / 430.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00027/0.1573, allocations: 44.77 kB / 430.6 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.1576, allocations: 228 kB / 430.8 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.582e-05/0.1576, allocations: 28.92 kB / 430.8 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.416e-05/0.1576, allocations: 28.31 kB / 430.8 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2688/0.4264, allocations: 262.9 kB / 431.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.4265, allocations: 6.125 kB / 431.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.4265, allocations: 7.766 kB / 431.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.4265, allocations: 6.906 kB / 431.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004475/0.427, allocations: 163.5 kB / 431.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/0.4283, allocations: 0.9661 MB / 432.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003524/0.4286, allocations: 156.9 kB / 432.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.4287, allocations: 67.8 kB / 432.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.4288, allocations: 3.781 kB / 432.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002454/0.429, allocations: 136.5 kB / 432.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.024e-06/0.429, allocations: 0 / 432.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005074/0.4295, allocations: 221.8 kB / 432.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.4296, allocations: 84.98 kB / 432.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.4297, allocations: 161.1 kB / 433.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.4297, allocations: 40.08 kB / 433.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.92e-05/0.4298, allocations: 146.6 kB / 433.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.05e-05/0.4299, allocations: 63.5 kB / 433.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.43, allocations: 81.44 kB / 433.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.737e-05/0.43, allocations: 323.5 kB / 433.7 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.4301, allocations: 67.95 kB / 433.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.4303, allocations: 139.5 kB / 433.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.4305, allocations: 206.4 kB / 434.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.4305, allocations: 3.125 kB / 434.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003694/0.4309, allocations: 246 kB / 434.3 MB, free: 9.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.4309, allocations: 6.656 kB / 434.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.4309, allocations: 2.469 kB / 434.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.4309, allocations: 3.281 kB / 434.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.4311, allocations: 34.38 kB / 434.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.807e-05/0.4311, allocations: 11.02 kB / 434.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.4312, allocations: 28.09 kB / 434.4 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.4313, allocations: 11.94 kB / 434.4 MB, free: 9.535 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.0001457/0.4314, allocations: 167.2 kB / 434.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/0.4314, allocations: 13.92 kB / 434.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.102e-05/0.4315, allocations: 17.34 kB / 434.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.4315, allocations: 6 kB / 434.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.4315, allocations: 3.938 kB / 434.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.4315, allocations: 4.844 kB / 434.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006694/0.4322, allocations: 0.5634 MB / 435.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.4322, allocations: 3.938 kB / 435.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.7e-05/0.4323, allocations: 15.81 kB / 435.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.4323, allocations: 5.781 kB / 435.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.4323, allocations: 5.094 kB / 435.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.4323, allocations: 2 kB / 435.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4323, allocations: 2.281 kB / 435.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.4326, allocations: 282.3 kB / 435.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.173e-05/0.4326, allocations: 96.12 kB / 435.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.4326, allocations: 6.969 kB / 435.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.366e-05/0.4327, allocations: 7.281 kB / 435.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.227e-05/0.4328, allocations: 19.62 kB / 435.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.4328, allocations: 8.719 kB / 435.7 MB, free: 8.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.265e-05/0.4329, allocations: 94.61 kB / 435.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4329, allocations: 7.938 kB / 435.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003245/0.4332, allocations: 53.92 kB / 435.8 MB, free: 8.648 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.0001158/0.4333, allocations: 104.2 kB / 435.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003502/0.4337, allocations: 172.9 kB / 436.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4337, allocations: 0 / 436.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.4338, allocations: 76.42 kB / 436.2 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.4341, allocations: 31.45 kB / 436.2 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006211/0.4347, allocations: 328.2 kB / 436.5 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001817/0.4349, allocations: 0.7344 MB / 437.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.101e-05/0.435, allocations: 23.64 kB / 437.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.101e-05/0.435, allocations: 23.12 kB / 437.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.435, allocations: 0 / 437.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of Templates: time 0.00716/0.4422, allocations: 1.713 MB / 439 MB, free: 7.418 MB / 350.1 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: 5.439536336809397]