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.001306/0.001306, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001191/0.001191, allocations: 172.5 kB / 24.82 MB, free: 9.238 MB / 18.57 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.101/1.101, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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 1.763e-06/1.763e-06, allocations: 0 / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.486e-05, allocations: 2.312 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002344/0.002369, allocations: 1.725 MB / 275.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005651/0.002934, allocations: 291.1 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.003059, allocations: 4 kB / 275.4 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.003195, allocations: 35.61 kB / 275.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.122e-05/0.003246, allocations: 19.8 kB / 275.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.003568, allocations: 123.7 kB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002643/0.003832, allocations: 283.4 kB / 275.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002398/0.004072, allocations: 154.1 kB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.004197, allocations: 139.7 kB / 276.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.004305, allocations: 75.75 kB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.004336, allocations: 24 kB / 276.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.637e-05/0.004393, allocations: 24 kB / 276.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.915e-05/0.004442, allocations: 55.83 kB / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.571e-05/0.004497, allocations: 67.81 kB / 276.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.004716, allocations: 195.2 kB / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.00472, allocations: 0 / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.004721, allocations: 0 / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.004725, allocations: 0 / 276.5 MB, free: 14.11 MB / 266.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.0004692/0.005194, allocations: 0.515 MB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.005229, allocations: 12.02 kB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.005412, allocations: 52.78 kB / 277.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/0.005575, allocations: 180.2 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.005606, allocations: 20.88 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.395e-05/0.00563, allocations: 28.38 kB / 277.4 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.005854, allocations: 232.7 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.005866, allocations: 8.125 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.005881, allocations: 8.375 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.005889, allocations: 12.36 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.476e-05/0.005974, allocations: 75.31 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007286/0.006703, allocations: 1.034 MB / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001586/0.006861, allocations: 144.8 kB / 278.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.558e-05/0.006907, allocations: 55.44 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.006927, allocations: 8 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000117/0.007044, allocations: 130.7 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.007045, allocations: 3.938 kB / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002225/0.007267, allocations: 174.2 kB / 279.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.007306, allocations: 89.05 kB / 279.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.739e-05/0.007403, allocations: 209.7 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.007422, allocations: 37.7 kB / 279.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.753e-05/0.0075, allocations: 191.4 kB / 279.7 MB, free: 10.67 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.444e-05/0.007544, allocations: 59.56 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.106e-05/0.007626, allocations: 99.36 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.007739, allocations: 0.5 MB / 280.4 MB, free: 9.996 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.601e-05/0.007775, allocations: 27.97 kB / 280.4 MB, free: 9.969 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.863e-05/0.007853, allocations: 132.8 kB / 280.5 MB, free: 9.797 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001339/0.007987, allocations: 184.5 kB / 280.7 MB, free: 9.574 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.00799, allocations: 0 / 280.7 MB, free: 9.574 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001863/0.008176, allocations: 209.3 kB / 280.9 MB, free: 9.363 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.008191, allocations: 7.938 kB / 280.9 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.008198, allocations: 4 kB / 280.9 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.00821, allocations: 4 kB / 280.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.732e-05/0.008297, allocations: 40.2 kB / 281 MB, free: 9.309 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.008303, allocations: 7.938 kB / 281 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.72e-05/0.00836, allocations: 27.78 kB / 281 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.008371, allocations: 12 kB / 281 MB, free: 9.262 MB / 266.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: 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,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 (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 9.304e-05/0.008464, allocations: 188.5 kB / 281.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.008491, allocations: 23.89 kB / 281.2 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.008522, allocations: 16.94 kB / 281.3 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.008525, allocations: 4 kB / 281.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.008528, allocations: 0 / 281.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.008533, allocations: 7.984 kB / 281.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003832/0.008916, allocations: 495.8 kB / 281.8 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.008918, allocations: 0 / 281.8 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.566e-05/0.008954, allocations: 15.92 kB / 281.8 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.008956, allocations: 4 kB / 281.8 MB, free: 8.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.008964, allocations: 4 kB / 281.8 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.008967, allocations: 4 kB / 281.8 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.008968, allocations: 0 / 281.8 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.009137, allocations: 315.3 kB / 282.1 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.384e-05/0.00915, allocations: 19.84 kB / 282.1 MB, free: 8.121 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.009165, allocations: 4 kB / 282.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.427e-05/0.00921, allocations: 15.94 kB / 282.1 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.009253, allocations: 19.95 kB / 282.1 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.009262, allocations: 8 kB / 282.2 MB, free: 8.074 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.758e-05/0.0093, allocations: 136.2 kB / 282.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0093, allocations: 0 / 282.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000193/0.009493, allocations: 47.89 kB / 282.3 MB, free: 7.895 MB / 266.7 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 8.532e-05/0.009578, allocations: 99.25 kB / 282.4 MB, free: 7.785 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001672/0.009745, allocations: 152.5 kB / 282.6 MB, free: 7.633 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.009747, allocations: 0 / 282.6 MB, free: 7.633 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.233e-05/0.009809, allocations: 70.02 kB / 282.6 MB, free: 7.562 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.01001, allocations: 27.94 kB / 282.7 MB, free: 7.535 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003665/0.01037, allocations: 334.7 kB / 283 MB, free: 7.176 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.857e-05/0.01042, allocations: 84.27 kB / 283.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.267e-05/0.01048, allocations: 22.33 kB / 283.1 MB, free: 7.055 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.05e-05/0.01056, allocations: 98.19 kB / 283.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01056, allocations: 0 / 283.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of Templates: time 0.003486/0.01404, allocations: 1.9 MB / 285.1 MB, free: 5.094 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] 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","",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.8227054490707815]