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.0009806/0.0009806, allocations: 75.77 kB / 22.46 MB, free: 2.094 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.001417/0.001417, allocations: 164.1 kB / 25.75 MB, free: 8.961 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.9509/0.9509, allocations: 158.6 MB / 187.5 MB, free: 2.906 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 2.114e-06/2.114e-06, allocations: 0 / 251.1 MB, free: 7.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.131e-05/3.342e-05, allocations: 10.25 kB / 251.1 MB, free: 7.828 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003438/0.003472, allocations: 1.692 MB / 252.8 MB, free: 6.121 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007592/0.004231, allocations: 263.1 kB / 253 MB, free: 5.863 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001503/0.004381, allocations: 4 kB / 253 MB, free: 5.859 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.004543, allocations: 31.67 kB / 253.1 MB, free: 5.828 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.113e-05/0.004614, allocations: 23.78 kB / 253.1 MB, free: 5.805 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005243/0.005138, allocations: 123.7 kB / 253.2 MB, free: 5.684 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003854/0.005524, allocations: 279.5 kB / 253.5 MB, free: 5.41 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003279/0.005852, allocations: 155.7 kB / 253.6 MB, free: 5.254 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.006014, allocations: 131.8 kB / 253.8 MB, free: 5.125 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001417/0.006156, allocations: 79.75 kB / 253.8 MB, free: 5.047 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.396e-05/0.0062, allocations: 24 kB / 253.9 MB, free: 5.023 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.546e-05/0.006285, allocations: 35.98 kB / 253.9 MB, free: 4.988 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.978e-05/0.006355, allocations: 55.81 kB / 254 MB, free: 4.934 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.749e-05/0.006442, allocations: 67.81 kB / 254 MB, free: 4.867 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003149/0.006757, allocations: 191.2 kB / 254.2 MB, free: 4.68 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.006761, allocations: 0 / 254.2 MB, free: 4.68 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.006763, allocations: 4 kB / 254.2 MB, free: 4.676 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.006769, allocations: 0 / 254.2 MB, free: 4.676 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.0006977/0.007467, allocations: 0.5068 MB / 254.7 MB, free: 4.121 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.007512, allocations: 19.98 kB / 254.7 MB, free: 4.102 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.007619, allocations: 48.78 kB / 254.8 MB, free: 4.055 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.008184, allocations: 176.3 kB / 255 MB, free: 3.855 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.205e-05/0.008226, allocations: 20.88 kB / 255 MB, free: 3.836 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.008269, allocations: 28.38 kB / 255 MB, free: 3.809 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004176/0.008686, allocations: 244.8 kB / 255.2 MB, free: 3.539 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.008699, allocations: 192 / 255.2 MB, free: 3.539 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.008727, allocations: 12.38 kB / 255.3 MB, free: 3.527 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.008741, allocations: 8.312 kB / 255.3 MB, free: 3.52 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.00898, allocations: 106.8 kB / 255.4 MB, free: 3.418 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.01013, allocations: 1.076 MB / 256.4 MB, free: 2.285 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.01039, allocations: 119.3 kB / 256.6 MB, free: 2.156 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.72e-05/0.01048, allocations: 51.7 kB / 256.6 MB, free: 2.102 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.0105, allocations: 4 kB / 256.6 MB, free: 2.098 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001849/0.01069, allocations: 116.7 kB / 256.7 MB, free: 1.969 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 2.094e-06/0.01069, allocations: 0 / 256.7 MB, free: 1.969 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.000417/0.01111, allocations: 182.1 kB / 256.9 MB, free: 1.785 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.01115, allocations: 55.41 kB / 257 MB, free: 1.719 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.01131, allocations: 225.7 kB / 257.2 MB, free: 1.48 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.01134, allocations: 37.64 kB / 257.2 MB, free: 1.438 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.01145, allocations: 195.4 kB / 257.4 MB, free: 1.242 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.494e-05/0.01151, allocations: 63.52 kB / 257.5 MB, free: 1.18 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.01163, allocations: 87.61 kB / 257.6 MB, free: 1.082 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.0118, allocations: 0.4923 MB / 258.1 MB, free: 0.5781 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.01192, allocations: 44.62 kB / 258.1 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001592/0.01208, allocations: 150.1 kB / 258.2 MB, free: 356 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.01232, allocations: 184.7 kB / 258.4 MB, free: 128 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.01233, allocations: 0 / 258.4 MB, free: 128 kB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003992/0.01273, allocations: 237.5 kB / 258.7 MB, free: 15.89 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.01275, allocations: 8 kB / 258.7 MB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.01275, allocations: 4 kB / 258.7 MB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.01277, allocations: 7.984 kB / 258.7 MB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.01292, allocations: 31.92 kB / 258.7 MB, free: 15.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.01293, allocations: 4 kB / 258.7 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.01303, allocations: 23.84 kB / 258.7 MB, free: 15.81 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.232e-05/0.01306, allocations: 19.98 kB / 258.8 MB, free: 15.79 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.0001308/0.01319, allocations: 191 kB / 258.9 MB, free: 15.59 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.01323, allocations: 23.84 kB / 259 MB, free: 15.57 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002899/0.01352, allocations: 174.8 kB / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.01352, allocations: 4 kB / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-06/0.01352, allocations: 0 / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.01353, allocations: 0 / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000648/0.01418, allocations: 0.5353 MB / 259.7 MB, free: 14.8 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.01418, allocations: 0 / 259.7 MB, free: 14.8 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.648e-05/0.01425, allocations: 19.92 kB / 259.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.01425, allocations: 0 / 259.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.01426, allocations: 8 kB / 259.7 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.01427, allocations: 0 / 259.7 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.01427, allocations: 4 kB / 259.7 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003147/0.01458, allocations: 319.7 kB / 260 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.099e-05/0.0146, allocations: 11.91 kB / 260 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.01463, allocations: 4 kB / 260 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.964e-05/0.01472, allocations: 15.98 kB / 260 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.743e-05/0.0148, allocations: 19.91 kB / 260.1 MB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.01482, allocations: 8 kB / 260.1 MB, free: 14.38 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.469e-05/0.01489, allocations: 154 kB / 260.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.01489, allocations: 0 / 260.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003762/0.01527, allocations: 51.89 kB / 260.3 MB, free: 14.18 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.0001676/0.01544, allocations: 111.2 kB / 260.4 MB, free: 14.06 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003066/0.01574, allocations: 156.7 kB / 260.5 MB, free: 13.91 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01574, allocations: 0 / 260.5 MB, free: 13.91 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001171/0.01586, allocations: 75.52 kB / 260.6 MB, free: 13.83 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.01619, allocations: 27.98 kB / 260.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006251/0.01681, allocations: 331.4 kB / 261 MB, free: 13.45 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.553e-05/0.01688, allocations: 84.27 kB / 261 MB, free: 13.35 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.005e-05/0.01696, allocations: 25.94 kB / 261.1 MB, free: 13.33 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.269e-05/0.01702, allocations: 24.5 kB / 261.1 MB, free: 13.3 MB / 250.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01702, allocations: 0 / 261.1 MB, free: 13.3 MB / 250.7 MB Notification: Performance of Templates: time 0.005159/0.02218, allocations: 1.942 MB / 263 MB, free: 11.38 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","",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.734385844087228]