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.002378/0.002378, allocations: 91.66 kB / 21.73 MB, free: 2.652 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.002916/0.002916, allocations: 166.1 kB / 25.03 MB, free: 8.457 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 1.546/1.546, allocations: 158.6 MB / 186.8 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] 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.182e-06/1.182e-06, allocations: 0 / 250.3 MB, free: 7.871 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.928e-05/3.047e-05, allocations: 6.312 kB / 250.3 MB, free: 7.863 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003349/0.003379, allocations: 1.665 MB / 252 MB, free: 6.184 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007937/0.004173, allocations: 263.1 kB / 252.3 MB, free: 5.926 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.004277, allocations: 11.94 kB / 252.3 MB, free: 5.914 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.004416, allocations: 19.73 kB / 252.3 MB, free: 5.895 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.084e-05/0.004487, allocations: 27.73 kB / 252.3 MB, free: 5.867 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004864/0.004973, allocations: 123.8 kB / 252.4 MB, free: 5.746 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003885/0.005362, allocations: 271.5 kB / 252.7 MB, free: 5.48 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003264/0.005688, allocations: 163.6 kB / 252.9 MB, free: 5.316 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.005885, allocations: 139.7 kB / 253 MB, free: 5.18 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.006034, allocations: 75.77 kB / 253.1 MB, free: 5.105 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.672e-05/0.006081, allocations: 20 kB / 253.1 MB, free: 5.086 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.573e-05/0.006177, allocations: 39.92 kB / 253.1 MB, free: 5.047 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.121e-05/0.006258, allocations: 55.83 kB / 253.2 MB, free: 4.992 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.00636, allocations: 71.8 kB / 253.3 MB, free: 4.922 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004072/0.006767, allocations: 263.1 kB / 253.5 MB, free: 4.664 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.006771, allocations: 0 / 253.5 MB, free: 4.664 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006772, allocations: 0 / 253.5 MB, free: 4.664 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.006778, allocations: 0 / 253.5 MB, free: 4.664 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.0008232/0.007602, allocations: 0.5221 MB / 254 MB, free: 4.098 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.007644, allocations: 19.98 kB / 254.1 MB, free: 4.078 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.007753, allocations: 44.78 kB / 254.1 MB, free: 4.035 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005852/0.008338, allocations: 184.2 kB / 254.3 MB, free: 3.828 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.008378, allocations: 20.88 kB / 254.3 MB, free: 3.809 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.621e-05/0.008424, allocations: 28.38 kB / 254.3 MB, free: 3.781 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000544/0.008969, allocations: 292 kB / 254.6 MB, free: 3.469 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.008984, allocations: 4.172 kB / 254.6 MB, free: 3.465 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.009012, allocations: 12.38 kB / 254.6 MB, free: 3.453 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.009024, allocations: 4.375 kB / 254.6 MB, free: 3.449 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003269/0.009351, allocations: 157.8 kB / 254.8 MB, free: 3.297 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.01088, allocations: 1.131 MB / 255.9 MB, free: 2.109 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/0.0112, allocations: 151.3 kB / 256.1 MB, free: 1.949 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.01134, allocations: 71.66 kB / 256.1 MB, free: 1.875 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.01136, allocations: 4 kB / 256.1 MB, free: 1.871 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002488/0.01161, allocations: 128.8 kB / 256.3 MB, free: 1.73 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.482e-06/0.01161, allocations: 0 / 256.3 MB, free: 1.73 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005199/0.01213, allocations: 222 kB / 256.5 MB, free: 1.504 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.54e-05/0.0122, allocations: 59.41 kB / 256.5 MB, free: 1.434 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000271/0.01247, allocations: 249.3 kB / 256.8 MB, free: 1.176 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.942e-05/0.01251, allocations: 45.62 kB / 256.8 MB, free: 1.125 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.01268, allocations: 195.5 kB / 257 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.53e-05/0.01275, allocations: 63.53 kB / 257.1 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.01291, allocations: 103.7 kB / 257.2 MB, free: 0.7539 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002998/0.01321, allocations: 0.504 MB / 257.7 MB, free: 244 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.01334, allocations: 60.62 kB / 257.7 MB, free: 184 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002603/0.0136, allocations: 170.2 kB / 257.9 MB, free: 15.97 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000332/0.01393, allocations: 224.6 kB / 258.1 MB, free: 15.71 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01394, allocations: 0 / 258.1 MB, free: 15.71 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004744/0.01441, allocations: 269.5 kB / 258.4 MB, free: 15.44 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.01443, allocations: 12 kB / 258.4 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.01444, allocations: 0 / 258.4 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.01446, allocations: 4 kB / 258.4 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.01465, allocations: 47.84 kB / 258.5 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.01466, allocations: 4 kB / 258.5 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.01476, allocations: 19.89 kB / 258.5 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/0.01481, allocations: 15.98 kB / 258.5 MB, free: 15.34 MB / 250.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,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 (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 0.0002208/0.01503, allocations: 199.1 kB / 258.7 MB, free: 15.13 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.572e-05/0.01507, allocations: 27.84 kB / 258.7 MB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000425/0.0155, allocations: 210.6 kB / 258.9 MB, free: 14.89 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.0155, allocations: 4 kB / 258.9 MB, free: 14.89 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.01551, allocations: 0 / 258.9 MB, free: 14.89 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.01551, allocations: 0 / 258.9 MB, free: 14.89 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008966/0.01641, allocations: 0.5823 MB / 259.5 MB, free: 14.26 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.01641, allocations: 0 / 259.5 MB, free: 14.26 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.624e-05/0.01649, allocations: 15.98 kB / 259.5 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.01649, allocations: 0 / 259.5 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.01651, allocations: 8 kB / 259.5 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.01651, allocations: 0 / 259.5 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.01651, allocations: 4 kB / 259.5 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004381/0.01695, allocations: 343.6 kB / 259.9 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.022e-05/0.01698, allocations: 19.84 kB / 259.9 MB, free: 13.86 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.01701, allocations: 4 kB / 259.9 MB, free: 13.86 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.994e-05/0.0171, allocations: 11.98 kB / 259.9 MB, free: 13.84 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.384e-05/0.01718, allocations: 15.97 kB / 259.9 MB, free: 13.83 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.0172, allocations: 8 kB / 259.9 MB, free: 13.82 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001293/0.01733, allocations: 155 kB / 260.1 MB, free: 13.67 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01733, allocations: 0 / 260.1 MB, free: 13.67 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003255/0.01765, allocations: 55.81 kB / 260.1 MB, free: 13.61 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 0.0002107/0.01787, allocations: 111.2 kB / 260.2 MB, free: 13.49 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000411/0.01828, allocations: 188.7 kB / 260.4 MB, free: 13.3 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01828, allocations: 0 / 260.4 MB, free: 13.3 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.01844, allocations: 95.52 kB / 260.5 MB, free: 13.21 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.01876, allocations: 27.98 kB / 260.5 MB, free: 13.18 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007844/0.01954, allocations: 367.3 kB / 260.9 MB, free: 12.8 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.0197, allocations: 129.2 kB / 261 MB, free: 12.65 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.894e-05/0.01979, allocations: 25.95 kB / 261.1 MB, free: 12.63 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.997e-05/0.01986, allocations: 24.48 kB / 261.1 MB, free: 12.61 MB / 250.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01986, allocations: 0 / 261.1 MB, free: 12.61 MB / 250.7 MB Notification: Performance of Templates: time 0.0069/0.02676, allocations: 1.945 MB / 263 MB, free: 10.68 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.683623953023925]