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.001109/0.001109, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001189/0.001189, allocations: 161 kB / 24.56 MB, free: 12 kB / 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 0.9353/0.9353, allocations: 177.1 MB / 205 MB, free: 5.223 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.603e-06/1.603e-06, allocations: 0 / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.505e-05/1.665e-05, allocations: 2.312 kB / 272.9 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00198/0.001997, allocations: 1.748 MB / 274.7 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005722/0.002569, allocations: 299 kB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.576e-05/0.002655, allocations: 4 kB / 275 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.00279, allocations: 31.67 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.829e-05/0.002838, allocations: 11.81 kB / 275 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004339/0.003272, allocations: 131.7 kB / 275.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.003544, allocations: 271.4 kB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.003791, allocations: 170 kB / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.003905, allocations: 127.8 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.004019, allocations: 79.75 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.004046, allocations: 20 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.174e-05/0.004107, allocations: 28 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.909e-05/0.004156, allocations: 55.81 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.835e-05/0.004225, allocations: 71.81 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002279/0.004453, allocations: 187.2 kB / 276.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.004455, allocations: 4 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.004456, allocations: 7.938 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.00446, allocations: 0 / 276.2 MB, free: 14.18 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.0004824/0.004942, allocations: 0.5034 MB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.004975, allocations: 12.03 kB / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001859/0.005161, allocations: 56.77 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.005347, allocations: 172.3 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.00538, allocations: 24.88 kB / 276.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.224e-05/0.005412, allocations: 28.38 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.005721, allocations: 244.8 kB / 277.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.005732, allocations: 4.188 kB / 277.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.005753, allocations: 12.38 kB / 277.2 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.005765, allocations: 12.31 kB / 277.2 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.005912, allocations: 94.81 kB / 277.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008656/0.006777, allocations: 1.061 MB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001961/0.006974, allocations: 158.3 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.272e-05/0.007036, allocations: 55.36 kB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.007055, allocations: 4 kB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001342/0.007189, allocations: 143.6 kB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.213e-06/0.00719, allocations: 0 / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002756/0.007466, allocations: 197.3 kB / 278.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/0.007609, allocations: 89.05 kB / 279 MB, free: 11.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.007712, allocations: 217.2 kB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.007731, allocations: 37.7 kB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.419e-05/0.007815, allocations: 191.4 kB / 279.4 MB, free: 10.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/0.007851, allocations: 59.59 kB / 279.5 MB, free: 10.58 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.018e-05/0.007931, allocations: 87.3 kB / 279.6 MB, free: 10.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.008058, allocations: 0.4962 MB / 280.1 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.332e-05/0.008121, allocations: 44.09 kB / 280.1 MB, free: 9.938 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.008227, allocations: 140.8 kB / 280.3 MB, free: 9.758 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.008403, allocations: 192.6 kB / 280.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.008406, allocations: 0 / 280.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002458/0.008652, allocations: 237.2 kB / 280.7 MB, free: 9.289 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.008668, allocations: 8 kB / 280.7 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.008674, allocations: 0 / 280.7 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.008689, allocations: 4 kB / 280.7 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.008793, allocations: 39.92 kB / 280.7 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.008802, allocations: 7.938 kB / 280.7 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.344e-05/0.008875, allocations: 36.05 kB / 280.8 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.008891, allocations: 12 kB / 280.8 MB, free: 9.184 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,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 9.953e-05/0.008991, allocations: 184.5 kB / 281 MB, free: 8.992 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.009013, allocations: 23.89 kB / 281 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.286e-05/0.009046, allocations: 16.92 kB / 281 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.009049, allocations: 4 kB / 281 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.009054, allocations: 0 / 281 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.009059, allocations: 0 / 281 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004586/0.009518, allocations: 0.5259 MB / 281.5 MB, free: 8.383 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.009521, allocations: 8 kB / 281.5 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.774e-05/0.009558, allocations: 15.92 kB / 281.6 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.009564, allocations: 11.92 kB / 281.6 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.009574, allocations: 0 / 281.6 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.009576, allocations: 4 kB / 281.6 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.009577, allocations: 0 / 281.6 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002015/0.009779, allocations: 327.3 kB / 281.9 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.19e-05/0.009791, allocations: 15.84 kB / 281.9 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.009811, allocations: 11.98 kB / 281.9 MB, free: 7.973 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.079e-05/0.009851, allocations: 4 kB / 281.9 MB, free: 7.969 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.71e-05/0.009909, allocations: 15.97 kB / 281.9 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.009918, allocations: 15.94 kB / 282 MB, free: 7.938 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.257e-05/0.009961, allocations: 139.2 kB / 282.1 MB, free: 7.801 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009961, allocations: 0 / 282.1 MB, free: 7.801 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001927/0.01015, allocations: 47.88 kB / 282.1 MB, free: 7.754 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.066e-05/0.01023, allocations: 107.2 kB / 282.2 MB, free: 7.637 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002084/0.01044, allocations: 163.2 kB / 282.4 MB, free: 7.477 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.01044, allocations: 0.5625 kB / 282.4 MB, free: 7.477 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.476e-05/0.01052, allocations: 71.59 kB / 282.5 MB, free: 7.402 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.01072, allocations: 27.98 kB / 282.5 MB, free: 7.375 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004387/0.01116, allocations: 334.8 kB / 282.8 MB, free: 7.016 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.471e-05/0.01121, allocations: 84.27 kB / 282.9 MB, free: 6.914 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.905e-05/0.01127, allocations: 26 kB / 282.9 MB, free: 6.891 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.738e-05/0.01132, allocations: 20.5 kB / 283 MB, free: 6.867 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01132, allocations: 3.938 kB / 283 MB, free: 6.863 MB / 266.7 MB Notification: Performance of Templates: time 0.0036/0.01492, allocations: 1.823 MB / 284.8 MB, free: 5.074 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.6967600570060313]