Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001346/0.001346, allocations: 110.8 kB / 21.19 MB, free: 0.6484 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.001441/0.001441, allocations: 211.6 kB / 24.49 MB, free: 3.938 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.436/1.436, allocations: 230.6 MB / 258.3 MB, free: 7.781 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 51.86 kB / 378.9 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2218, allocations: 53.37 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00254/0.2244, allocations: 1.475 MB / 433.8 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006163/0.225, allocations: 279.2 kB / 434.1 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.718e-05/0.2251, allocations: 4 kB / 434.1 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.2252, allocations: 27.69 kB / 434.1 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.559e-05/0.2252, allocations: 19.78 kB / 434.1 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003563/0.2256, allocations: 115.9 kB / 434.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003171/0.2259, allocations: 267.4 kB / 434.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002392/0.2261, allocations: 138.7 kB / 434.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.2262, allocations: 95.69 kB / 434.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.2264, allocations: 91.61 kB / 434.8 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.549e-05/0.2264, allocations: 24 kB / 434.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.25e-05/0.2265, allocations: 24 kB / 434.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.525e-05/0.2265, allocations: 59.77 kB / 434.9 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.023e-05/0.2266, allocations: 71.66 kB / 435 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002827/0.2269, allocations: 249.6 kB / 435.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.2269, allocations: 0 / 435.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2269, allocations: 4 kB / 435.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.2269, allocations: 0 / 435.2 MB, free: 3.816 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006199/0.2275, allocations: 417 kB / 435.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.2275, allocations: 8.031 kB / 435.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002552/0.2278, allocations: 32.83 kB / 435.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.2281, allocations: 166.2 kB / 435.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.2281, allocations: 20.88 kB / 435.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.2281, allocations: 28.38 kB / 435.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004254/0.2286, allocations: 239.1 kB / 436.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.2286, allocations: 4.188 kB / 436.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.2286, allocations: 15.94 kB / 436.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.2286, allocations: 4 kB / 436.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002891/0.2289, allocations: 153.7 kB / 436.3 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008649/0.2298, allocations: 0.5735 MB / 436.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002902/0.2301, allocations: 156.7 kB / 437 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.2302, allocations: 68.77 kB / 437.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.2302, allocations: 7.938 kB / 437.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.2304, allocations: 116.9 kB / 437.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.2304, allocations: 4 kB / 437.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004043/0.2308, allocations: 221.1 kB / 437.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.2308, allocations: 59.39 kB / 437.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.2309, allocations: 146 kB / 437.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.231, allocations: 37.7 kB / 437.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.269e-05/0.2311, allocations: 128.9 kB / 437.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.788e-05/0.2311, allocations: 71.41 kB / 437.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.2312, allocations: 74.02 kB / 437.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2314, allocations: 326.8 kB / 438.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.2315, allocations: 60.62 kB / 438.3 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.2317, allocations: 128.1 kB / 438.4 MB, free: 416 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.2319, allocations: 179.1 kB / 438.6 MB, free: 212 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2319, allocations: 0 / 438.6 MB, free: 212 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003809/0.2323, allocations: 237.6 kB / 438.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.2323, allocations: 11.94 kB / 438.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.2323, allocations: 0 / 438.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.2323, allocations: 4 kB / 438.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.2325, allocations: 35.86 kB / 438.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.2325, allocations: 4 kB / 438.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.925e-05/0.2326, allocations: 31.77 kB / 438.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.2326, allocations: 12 kB / 438.9 MB, free: 15.87 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001383/0.2327, allocations: 145.9 kB / 439.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.2328, allocations: 23.84 kB / 439.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.408e-05/0.2328, allocations: 20.92 kB / 439.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2328, allocations: 3.938 kB / 439.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2328, allocations: 0 / 439.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.763e-05/0.2328, allocations: 15.89 kB / 439.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.2329, allocations: 4 kB / 439.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.272e-05/0.2329, allocations: 15.98 kB / 439.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.029e-05/0.233, allocations: 23.95 kB / 439.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003564/0.2333, allocations: 256.6 kB / 439.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003437/0.2337, allocations: 350.5 kB / 439.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001135/0.2338, allocations: 70.81 kB / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.79e-05/0.2339, allocations: 94.89 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of Backend: time 1.6e-07/0.2339, allocations: 0 / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004817/0.2343, allocations: 186.2 kB / 440.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of SimCode: time 0.0006843/0.235, allocations: 0.7303 MB / 440.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of Templates: time 0.005336/0.2404, allocations: 2.161 MB / 443 MB, free: 11.75 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.241553185005614]