Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0009907/0.0009907, allocations: 80.8 kB / 22.28 MB, free: 2.203 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.001034/0.001034, allocations: 168.1 kB / 25.7 MB, free: 8.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.946/0.946, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.585e-05/1.755e-05, allocations: 6.25 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002124/0.002142, allocations: 1.727 MB / 253.3 MB, free: 5.504 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005129/0.002655, allocations: 275 kB / 253.5 MB, free: 5.234 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.205e-05/0.002737, allocations: 7.938 kB / 253.5 MB, free: 5.227 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.00285, allocations: 31.67 kB / 253.6 MB, free: 5.195 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.634e-05/0.002897, allocations: 15.81 kB / 253.6 MB, free: 5.18 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000358/0.003255, allocations: 131.7 kB / 253.7 MB, free: 5.051 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002341/0.003489, allocations: 275.5 kB / 254 MB, free: 4.781 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.003685, allocations: 150.3 kB / 254.1 MB, free: 4.633 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.536e-05/0.00378, allocations: 139.8 kB / 254.3 MB, free: 4.496 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.768e-05/0.003878, allocations: 71.77 kB / 254.3 MB, free: 4.426 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.003904, allocations: 27.94 kB / 254.4 MB, free: 4.398 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.156e-05/0.003976, allocations: 31.98 kB / 254.4 MB, free: 4.367 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.919e-05/0.004025, allocations: 55.81 kB / 254.5 MB, free: 4.312 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.406e-05/0.004079, allocations: 71.81 kB / 254.5 MB, free: 4.242 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.00428, allocations: 187.2 kB / 254.7 MB, free: 4.059 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.004282, allocations: 0 / 254.7 MB, free: 4.059 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.004282, allocations: 0 / 254.7 MB, free: 4.059 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.004286, allocations: 0 / 254.7 MB, free: 4.059 MB / 234.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.0003753/0.004661, allocations: 403.3 kB / 255.1 MB, free: 3.633 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.004692, allocations: 11.98 kB / 255.1 MB, free: 3.621 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.587e-05/0.004738, allocations: 36.91 kB / 255.2 MB, free: 3.586 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.004899, allocations: 149.5 kB / 255.3 MB, free: 3.414 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.004924, allocations: 24.88 kB / 255.3 MB, free: 3.391 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.004947, allocations: 24.38 kB / 255.3 MB, free: 3.367 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000202/0.005149, allocations: 222.5 kB / 255.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.005159, allocations: 12.11 kB / 255.6 MB, free: 3.113 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.005171, allocations: 4.375 kB / 255.6 MB, free: 3.109 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.005179, allocations: 8.375 kB / 255.6 MB, free: 3.102 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.122e-05/0.00526, allocations: 79.28 kB / 255.7 MB, free: 3.027 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005934/0.005853, allocations: 0.7271 MB / 256.4 MB, free: 2.266 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.005992, allocations: 98.45 kB / 256.5 MB, free: 2.16 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.949e-05/0.006031, allocations: 44.77 kB / 256.5 MB, free: 2.113 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.006046, allocations: 4 kB / 256.5 MB, free: 2.109 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.572e-05/0.006142, allocations: 95.12 kB / 256.6 MB, free: 2.004 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.006144, allocations: 0 / 256.6 MB, free: 2.004 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001648/0.006309, allocations: 130 kB / 256.8 MB, free: 1.871 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.00634, allocations: 63.39 kB / 256.8 MB, free: 1.797 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.789e-05/0.006417, allocations: 161.6 kB / 257 MB, free: 1.629 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.006436, allocations: 37.7 kB / 257 MB, free: 1.586 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.003e-05/0.006496, allocations: 144.7 kB / 257.2 MB, free: 1.438 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.006526, allocations: 59.5 kB / 257.2 MB, free: 1.379 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.536e-05/0.006592, allocations: 89.89 kB / 257.3 MB, free: 1.281 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.401e-05/0.006666, allocations: 326.8 kB / 257.6 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.259e-05/0.006698, allocations: 28.64 kB / 257.6 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.171e-05/0.00677, allocations: 113.8 kB / 257.8 MB, free: 0.7852 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.006885, allocations: 140.4 kB / 257.9 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.006887, allocations: 0 / 257.9 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0001616/0.007049, allocations: 173.5 kB / 258.1 MB, free: 452 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.007063, allocations: 11.94 kB / 258.1 MB, free: 440 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.007069, allocations: 3.984 kB / 258.1 MB, free: 436 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.007085, allocations: 8 kB / 258.1 MB, free: 428 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.007199, allocations: 39.86 kB / 258.1 MB, free: 388 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.007204, allocations: 4 kB / 258.1 MB, free: 384 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.039e-05/0.007254, allocations: 27.88 kB / 258.2 MB, free: 356 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.007274, allocations: 12 kB / 258.2 MB, free: 344 kB / 234.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: 30 ($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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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 8.428e-05/0.007358, allocations: 140.5 kB / 258.3 MB, free: 196 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.007377, allocations: 23.92 kB / 258.3 MB, free: 172 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001389/0.007516, allocations: 130.7 kB / 258.5 MB, free: 32 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.007519, allocations: 4 kB / 258.5 MB, free: 28 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-06/0.00752, allocations: 0 / 258.5 MB, free: 28 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.007526, allocations: 3.984 kB / 258.5 MB, free: 24 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003313/0.007857, allocations: 373.6 kB / 258.8 MB, free: 15.63 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.007858, allocations: 0 / 258.8 MB, free: 15.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.24e-05/0.007931, allocations: 16 kB / 258.8 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.007932, allocations: 0 / 258.8 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-06/0.00794, allocations: 11.98 kB / 258.9 MB, free: 15.6 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.007942, allocations: 0 / 258.9 MB, free: 15.6 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.007943, allocations: 0 / 258.9 MB, free: 15.6 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000114/0.008057, allocations: 215.3 kB / 259.1 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.208e-05/0.008069, allocations: 15.89 kB / 259.1 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.008084, allocations: 7.984 kB / 259.1 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.201e-05/0.008126, allocations: 8 kB / 259.1 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.008167, allocations: 19.95 kB / 259.1 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.008176, allocations: 8 kB / 259.1 MB, free: 15.32 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.506e-05/0.008191, allocations: 16.84 kB / 259.1 MB, free: 15.3 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008192, allocations: 4 kB / 259.1 MB, free: 15.29 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000162/0.008354, allocations: 59.78 kB / 259.2 MB, free: 15.23 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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 9.338e-05/0.008447, allocations: 88.36 kB / 259.3 MB, free: 15.14 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001352/0.008582, allocations: 129.9 kB / 259.4 MB, free: 15.01 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.008586, allocations: 0 / 259.4 MB, free: 15.01 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.82e-05/0.008644, allocations: 68.69 kB / 259.5 MB, free: 14.94 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001452/0.008789, allocations: 20.5 kB / 259.5 MB, free: 14.92 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003398/0.009129, allocations: 333.1 kB / 259.8 MB, free: 14.57 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.21e-05/0.009171, allocations: 80.33 kB / 259.9 MB, free: 14.48 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.244e-05/0.009223, allocations: 25.94 kB / 259.9 MB, free: 14.45 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.978e-05/0.009303, allocations: 79.36 kB / 260 MB, free: 14.37 MB / 250.7 MB Notification: Performance of SimCode: time 6.01e-07/0.009304, allocations: 0 / 260 MB, free: 14.37 MB / 250.7 MB Notification: Performance of Templates: time 0.003628/0.01293, allocations: 2.114 MB / 262.1 MB, free: 12.28 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.744635836686939]