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.001519/0.001519, allocations: 88.33 kB / 21.73 MB, free: 2.68 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.00149/0.00149, allocations: 168.5 kB / 25.02 MB, free: 9.434 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.423/1.423, allocations: 158.6 MB / 186.8 MB, free: 2.883 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.793e-06/1.793e-06, allocations: 0 / 250.3 MB, free: 3.977 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.832e-05/3.012e-05, allocations: 2.312 kB / 250.3 MB, free: 3.973 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003252/0.003282, allocations: 1.659 MB / 252 MB, free: 2.301 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007424/0.004025, allocations: 259.8 kB / 252.2 MB, free: 2.047 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.911e-05/0.004124, allocations: 4 kB / 252.2 MB, free: 2.043 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001502/0.004274, allocations: 27.67 kB / 252.3 MB, free: 2.016 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.633e-05/0.00434, allocations: 19.8 kB / 252.3 MB, free: 1.996 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004971/0.004837, allocations: 127.8 kB / 252.4 MB, free: 1.871 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003863/0.005224, allocations: 279.5 kB / 252.7 MB, free: 1.598 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002953/0.005519, allocations: 159.6 kB / 252.8 MB, free: 1.438 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.005708, allocations: 135.8 kB / 253 MB, free: 1.305 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.005844, allocations: 75.75 kB / 253 MB, free: 1.23 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.374e-05/0.005888, allocations: 20 kB / 253.1 MB, free: 1.211 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.157e-05/0.00597, allocations: 32 kB / 253.1 MB, free: 1.18 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.466e-05/0.006054, allocations: 67.8 kB / 253.2 MB, free: 1.113 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.818e-05/0.006153, allocations: 67.81 kB / 253.2 MB, free: 1.047 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.006521, allocations: 263.1 kB / 253.5 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.006524, allocations: 0 / 253.5 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.006526, allocations: 0 / 253.5 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.006531, allocations: 0 / 253.5 MB, free: 0.7891 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.0007424/0.007273, allocations: 424.6 kB / 253.9 MB, free: 344 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.007312, allocations: 11.98 kB / 253.9 MB, free: 332 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.007428, allocations: 44.8 kB / 254 MB, free: 288 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.007805, allocations: 177.5 kB / 254.1 MB, free: 84 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.995e-05/0.007855, allocations: 20.88 kB / 254.2 MB, free: 64 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.255e-05/0.007898, allocations: 28.31 kB / 254.2 MB, free: 36 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005276/0.008425, allocations: 274 kB / 254.4 MB, free: 15.74 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.008436, allocations: 192 / 254.4 MB, free: 15.74 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.008468, allocations: 12.38 kB / 254.5 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.008478, allocations: 4.375 kB / 254.5 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003584/0.008836, allocations: 169.8 kB / 254.6 MB, free: 15.56 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.01009, allocations: 0.8438 MB / 255.5 MB, free: 14.68 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002988/0.01039, allocations: 142.8 kB / 255.6 MB, free: 14.53 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.01052, allocations: 64.83 kB / 255.7 MB, free: 14.46 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.01054, allocations: 4 kB / 255.7 MB, free: 14.46 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.01076, allocations: 115.1 kB / 255.8 MB, free: 14.33 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.01076, allocations: 0 / 255.8 MB, free: 14.33 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004781/0.01124, allocations: 229.9 kB / 256 MB, free: 14.1 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/0.0113, allocations: 59.41 kB / 256.1 MB, free: 14.03 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.01146, allocations: 161.9 kB / 256.2 MB, free: 13.86 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.879e-05/0.0115, allocations: 37.69 kB / 256.3 MB, free: 13.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.01162, allocations: 140.7 kB / 256.4 MB, free: 13.68 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.341e-05/0.01169, allocations: 63.58 kB / 256.5 MB, free: 13.62 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.0118, allocations: 78 kB / 256.5 MB, free: 13.53 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.01198, allocations: 326.8 kB / 256.9 MB, free: 13.2 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.01212, allocations: 68.62 kB / 256.9 MB, free: 13.14 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.01232, allocations: 145.7 kB / 257.1 MB, free: 12.96 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.01263, allocations: 180.5 kB / 257.2 MB, free: 12.76 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01263, allocations: 0 / 257.2 MB, free: 12.76 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004591/0.01309, allocations: 273.2 kB / 257.5 MB, free: 12.48 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.01311, allocations: 4 kB / 257.5 MB, free: 12.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.01312, allocations: 4 kB / 257.5 MB, free: 12.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.01314, allocations: 4.281 kB / 257.5 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.0133, allocations: 43.92 kB / 257.6 MB, free: 12.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.01331, allocations: 3.984 kB / 257.6 MB, free: 12.43 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.01343, allocations: 31.78 kB / 257.6 MB, free: 12.39 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.01346, allocations: 12 kB / 257.6 MB, free: 12.38 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.0001641/0.01363, allocations: 152.4 kB / 257.8 MB, free: 12.23 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.492e-05/0.01367, allocations: 27.78 kB / 257.8 MB, free: 12.2 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003829/0.01406, allocations: 194.8 kB / 258 MB, free: 12 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.01406, allocations: 4 kB / 258 MB, free: 12 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.01407, allocations: 4 kB / 258 MB, free: 12 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.01408, allocations: 3.984 kB / 258 MB, free: 11.99 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007859/0.01486, allocations: 0.4971 MB / 258.5 MB, free: 11.45 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.01486, allocations: 0 / 258.5 MB, free: 11.45 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-05/0.01494, allocations: 15.94 kB / 258.5 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.01495, allocations: 0 / 258.5 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.01497, allocations: 11.98 kB / 258.5 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.093e-06/0.01497, allocations: 0 / 258.5 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.01497, allocations: 0 / 258.5 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003855/0.01536, allocations: 287.3 kB / 258.8 MB, free: 11.13 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.416e-05/0.01538, allocations: 19.83 kB / 258.8 MB, free: 11.11 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.01541, allocations: 12 kB / 258.8 MB, free: 11.1 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.036e-05/0.0155, allocations: 7.938 kB / 258.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.418e-05/0.01558, allocations: 19.95 kB / 258.9 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.0156, allocations: 12 kB / 258.9 MB, free: 11.06 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001233/0.01572, allocations: 99.2 kB / 259 MB, free: 10.96 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01572, allocations: 0 / 259 MB, free: 10.96 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003271/0.01605, allocations: 51.89 kB / 259 MB, free: 10.91 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.0001703/0.01622, allocations: 111.2 kB / 259.1 MB, free: 10.79 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003648/0.01658, allocations: 172.5 kB / 259.3 MB, free: 10.62 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01658, allocations: 0 / 259.3 MB, free: 10.62 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.01673, allocations: 79.78 kB / 259.4 MB, free: 10.54 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.01704, allocations: 31.94 kB / 259.4 MB, free: 10.51 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006858/0.01773, allocations: 352.8 kB / 259.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.01788, allocations: 133.7 kB / 259.9 MB, free: 9.996 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.876e-05/0.01796, allocations: 17.95 kB / 259.9 MB, free: 9.98 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.93e-05/0.01802, allocations: 24.48 kB / 259.9 MB, free: 9.957 MB / 250.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01803, allocations: 8 kB / 259.9 MB, free: 9.949 MB / 250.7 MB Notification: Performance of Templates: time 0.006084/0.02411, allocations: 1.932 MB / 261.9 MB, free: 8.031 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] 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.414291204884648]