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.001346/0.001346, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001391/0.001391, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.431/1.431, allocations: 230.6 MB / 258.3 MB, free: 7.98 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.002101/0.002101, allocations: 47.92 kB / 379 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2311, allocations: 53.36 MB / 432.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00323/0.2344, allocations: 1.718 MB / 434.1 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007641/0.2351, allocations: 303.1 kB / 434.4 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.2353, allocations: 7.938 kB / 434.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.2354, allocations: 23.73 kB / 434.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.554e-05/0.2355, allocations: 19.75 kB / 434.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.2359, allocations: 123.8 kB / 434.5 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003439/0.2362, allocations: 283.4 kB / 434.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.2365, allocations: 153.8 kB / 435 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.2366, allocations: 99.69 kB / 435.1 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.2368, allocations: 103.5 kB / 435.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.2368, allocations: 24 kB / 435.2 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.781e-05/0.2369, allocations: 28 kB / 435.2 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.818e-05/0.237, allocations: 59.83 kB / 435.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.2371, allocations: 95.52 kB / 435.4 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00033/0.2374, allocations: 264.2 kB / 435.6 MB, free: 3.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2374, allocations: 4 kB / 435.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2374, allocations: 0 / 435.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.2374, allocations: 0 / 435.6 MB, free: 3.652 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.0006612/0.2381, allocations: 417.2 kB / 436 MB, free: 3.215 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.2381, allocations: 15.97 kB / 436.1 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002616/0.2384, allocations: 36.77 kB / 436.1 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.2387, allocations: 170.2 kB / 436.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/0.2387, allocations: 28.88 kB / 436.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.134e-05/0.2388, allocations: 28.38 kB / 436.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004485/0.2392, allocations: 269.7 kB / 436.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2392, allocations: 192 / 436.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.472e-05/0.2392, allocations: 11.94 kB / 436.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.2393, allocations: 4 kB / 436.6 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002983/0.2396, allocations: 173.6 kB / 436.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.2407, allocations: 0.9132 MB / 437.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.241, allocations: 169.4 kB / 437.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.2411, allocations: 69.64 kB / 437.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.2411, allocations: 0 / 437.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/0.2413, allocations: 142.6 kB / 438.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.163e-06/0.2413, allocations: 0 / 438.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004293/0.2418, allocations: 225 kB / 438.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.2418, allocations: 85.11 kB / 438.4 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.242, allocations: 152.7 kB / 438.5 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.242, allocations: 41.7 kB / 438.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.2421, allocations: 148.6 kB / 438.7 MB, free: 388 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.693e-05/0.2422, allocations: 63.64 kB / 438.8 MB, free: 324 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.842e-05/0.2423, allocations: 81.47 kB / 438.8 MB, free: 236 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.2424, allocations: 330.8 kB / 439.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.2425, allocations: 63.97 kB / 439.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.2427, allocations: 144.4 kB / 439.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/0.243, allocations: 200.8 kB / 439.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.243, allocations: 0 / 439.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003805/0.2434, allocations: 249.3 kB / 439.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2434, allocations: 8 kB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2434, allocations: 4.281 kB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.2434, allocations: 4 kB / 439.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.2435, allocations: 31.92 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.2436, allocations: 7.938 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.2437, allocations: 27.84 kB / 439.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.2437, allocations: 8 kB / 439.9 MB, free: 15.1 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.000153/0.2438, allocations: 165.7 kB / 440.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.326e-05/0.2438, allocations: 11.91 kB / 440.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.841e-05/0.2439, allocations: 28.92 kB / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2439, allocations: 0 / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.2439, allocations: 4 kB / 440.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2439, allocations: 0 / 440.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007186/0.2446, allocations: 0.5431 MB / 440.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2446, allocations: 0 / 440.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.068e-05/0.2447, allocations: 15.94 kB / 440.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.2447, allocations: 4 kB / 440.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.2447, allocations: 7.984 kB / 440.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.2447, allocations: 11.94 kB / 440.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2447, allocations: 0 / 440.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003097/0.245, allocations: 267 kB / 440.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.786e-05/0.2451, allocations: 11.89 kB / 441 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.2451, allocations: 11.98 kB / 441 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.393e-05/0.2452, allocations: 11.94 kB / 441 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.736e-05/0.2452, allocations: 23.97 kB / 441 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.2453, allocations: 11.92 kB / 441 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.924e-05/0.2453, allocations: 99.27 kB / 441.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2453, allocations: 3.938 kB / 441.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.2456, allocations: 51.84 kB / 441.2 MB, free: 13.74 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.0001055/0.2457, allocations: 99.25 kB / 441.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003148/0.246, allocations: 172.2 kB / 441.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.246, allocations: 0 / 441.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.2462, allocations: 79.75 kB / 441.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.2465, allocations: 23.92 kB / 441.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005927/0.2471, allocations: 354.1 kB / 441.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.2474, allocations: 0.7328 MB / 442.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.179e-05/0.2475, allocations: 23.44 kB / 442.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2475, allocations: 0 / 442.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of Templates: time 0.004104/0.2516, allocations: 2.272 MB / 444.9 MB, free: 9.934 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/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: 6.557926211040467]