Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 78.19 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 152 kB / 24.8 MB, free: 9.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.038/1.038, allocations: 173.3 MB / 201.4 MB, free: 9.203 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.844e-05, allocations: 2.312 kB / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00588/0.005909, allocations: 1.722 MB / 270.1 MB, free: 4.484 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006821/0.006591, allocations: 299 kB / 270.4 MB, free: 4.191 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.006694, allocations: 7.938 kB / 270.4 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.00684, allocations: 27.69 kB / 270.4 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.339e-05/0.006913, allocations: 27.78 kB / 270.4 MB, free: 4.129 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.007372, allocations: 123.7 kB / 270.6 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003217/0.007693, allocations: 279.4 kB / 270.8 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003239/0.008017, allocations: 150.1 kB / 271 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.008186, allocations: 139.7 kB / 271.1 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.008324, allocations: 75.75 kB / 271.2 MB, free: 3.371 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.111e-05/0.008366, allocations: 24 kB / 271.2 MB, free: 3.348 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.18e-05/0.008457, allocations: 36 kB / 271.2 MB, free: 3.312 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.404e-05/0.008521, allocations: 59.8 kB / 271.3 MB, free: 3.254 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.185e-05/0.008593, allocations: 67.83 kB / 271.4 MB, free: 3.188 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000304/0.008897, allocations: 191.2 kB / 271.6 MB, free: 3 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.008902, allocations: 0 / 271.6 MB, free: 3 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.008904, allocations: 0 / 271.6 MB, free: 3 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.008909, allocations: 0 / 271.6 MB, free: 3 MB / 250.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.0005748/0.009484, allocations: 0.5111 MB / 272.1 MB, free: 2.453 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.009525, allocations: 12.03 kB / 272.1 MB, free: 2.441 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.504e-05/0.0096, allocations: 40.8 kB / 272.1 MB, free: 2.402 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000225/0.009825, allocations: 188.2 kB / 272.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.365e-05/0.009858, allocations: 20.88 kB / 272.3 MB, free: 2.172 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.009893, allocations: 28.38 kB / 272.4 MB, free: 2.145 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/0.01018, allocations: 228.7 kB / 272.6 MB, free: 1.891 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.0102, allocations: 4.125 kB / 272.6 MB, free: 1.887 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/0.01022, allocations: 16.36 kB / 272.6 MB, free: 1.871 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.01023, allocations: 4.375 kB / 272.6 MB, free: 1.867 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.01035, allocations: 83.3 kB / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00395/0.0143, allocations: 1.05 MB / 273.7 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.0145, allocations: 145.6 kB / 273.9 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.469e-05/0.01456, allocations: 55.34 kB / 273.9 MB, free: 472 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.01459, allocations: 4 kB / 273.9 MB, free: 468 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001548/0.01474, allocations: 128.1 kB / 274.1 MB, free: 316 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.724e-06/0.01474, allocations: 0 / 274.1 MB, free: 316 kB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.000299/0.01504, allocations: 184.4 kB / 274.2 MB, free: 128 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.332e-05/0.0151, allocations: 85.05 kB / 274.3 MB, free: 24 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.01524, allocations: 217.5 kB / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.01527, allocations: 45.81 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.303e-05/0.01536, allocations: 191.4 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/0.01541, allocations: 63.5 kB / 274.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.01551, allocations: 91.27 kB / 274.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.01566, allocations: 0.4962 MB / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.227e-05/0.01572, allocations: 35.75 kB / 275.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.01583, allocations: 136.6 kB / 275.6 MB, free: 14.67 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.01601, allocations: 184.7 kB / 275.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.01602, allocations: 0 / 275.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002776/0.01629, allocations: 213.2 kB / 276 MB, free: 14.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.01631, allocations: 11.03 kB / 276 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.01632, allocations: 8 kB / 276 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.01634, allocations: 4 kB / 276 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.01646, allocations: 43.91 kB / 276 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.01647, allocations: 7.938 kB / 276 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003101/0.01957, allocations: 23.83 kB / 276.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.498e-05/0.01959, allocations: 12 kB / 276.1 MB, free: 14.13 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 0.000129/0.01972, allocations: 192.5 kB / 276.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/0.01975, allocations: 23.84 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002332/0.01999, allocations: 158.5 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.01999, allocations: 0 / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.01999, allocations: 4 kB / 276.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.02, allocations: 3.984 kB / 276.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005013/0.0205, allocations: 0.4974 MB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.0205, allocations: 0 / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.327e-05/0.02055, allocations: 16 kB / 277 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.02056, allocations: 0 / 277 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.02057, allocations: 7.984 kB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.02057, allocations: 0 / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.02057, allocations: 0 / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002329/0.02081, allocations: 331.7 kB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.092e-05/0.02083, allocations: 23.84 kB / 277.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.02085, allocations: 4 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.92e-05/0.02092, allocations: 7.984 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.597e-05/0.02097, allocations: 19.97 kB / 277.4 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.02098, allocations: 4 kB / 277.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.15e-05/0.02104, allocations: 135.2 kB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02104, allocations: 3.938 kB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002948/0.02133, allocations: 55.88 kB / 277.5 MB, free: 12.58 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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * 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 0.0001471/0.02148, allocations: 114.9 kB / 277.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002025/0.02168, allocations: 135.7 kB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.02168, allocations: 0 / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.877e-05/0.02177, allocations: 83.44 kB / 277.9 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.02205, allocations: 27.92 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.02522, allocations: 335.4 kB / 278.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.275e-05/0.02529, allocations: 84.31 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.555e-05/0.02538, allocations: 21.95 kB / 278.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.0255, allocations: 102.2 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of SimCode: time 1.643e-06/0.0255, allocations: 0 / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of Templates: time 0.004604/0.0301, allocations: 2.16 MB / 280.6 MB, free: 9.5 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.836665009148419]