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.001907/0.001907, allocations: 95.86 kB / 20.96 MB, free: 3.461 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.00216/0.00216, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 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.516/1.516, allocations: 173.3 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] 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.573e-06/1.573e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.996e-05/3.153e-05, allocations: 6.25 kB / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003219/0.003251, allocations: 1.703 MB / 269 MB, free: 5.043 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007535/0.004004, allocations: 295.1 kB / 269.3 MB, free: 4.754 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.357e-05/0.004088, allocations: 4 kB / 269.3 MB, free: 4.75 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.004232, allocations: 27.62 kB / 269.3 MB, free: 4.723 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.41e-05/0.004296, allocations: 19.8 kB / 269.3 MB, free: 4.703 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004286/0.004725, allocations: 131.7 kB / 269.5 MB, free: 4.574 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000388/0.005113, allocations: 275.4 kB / 269.7 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000303/0.005416, allocations: 166.1 kB / 269.9 MB, free: 4.137 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.005603, allocations: 127.8 kB / 270 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.005746, allocations: 79.69 kB / 270.1 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.651e-05/0.005793, allocations: 24 kB / 270.1 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.657e-05/0.005879, allocations: 32 kB / 270.2 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.275e-05/0.005962, allocations: 63.8 kB / 270.2 MB, free: 3.816 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.844e-05/0.00606, allocations: 67.81 kB / 270.3 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003914/0.006452, allocations: 267 kB / 270.5 MB, free: 3.488 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.006455, allocations: 0 / 270.5 MB, free: 3.488 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.006457, allocations: 0 / 270.5 MB, free: 3.488 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.006462, allocations: 0 / 270.5 MB, free: 3.488 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.0008404/0.007303, allocations: 0.5265 MB / 271.1 MB, free: 2.926 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.007343, allocations: 12.03 kB / 271.1 MB, free: 2.914 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.007451, allocations: 48.73 kB / 271.1 MB, free: 2.867 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.007749, allocations: 168.4 kB / 271.3 MB, free: 2.676 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.306e-05/0.007792, allocations: 28.81 kB / 271.3 MB, free: 2.648 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.052e-05/0.007843, allocations: 32.36 kB / 271.4 MB, free: 2.617 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005379/0.008381, allocations: 288 kB / 271.6 MB, free: 2.309 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.008394, allocations: 192 / 271.6 MB, free: 2.309 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.008423, allocations: 12.38 kB / 271.6 MB, free: 2.297 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.008431, allocations: 4.375 kB / 271.6 MB, free: 2.293 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003337/0.008765, allocations: 165.8 kB / 271.8 MB, free: 2.133 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.01022, allocations: 1.123 MB / 272.9 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.01058, allocations: 194.2 kB / 273.1 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.01072, allocations: 86.28 kB / 273.2 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.01075, allocations: 4 kB / 273.2 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.01103, allocations: 160.3 kB / 273.4 MB, free: 472 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.233e-06/0.01103, allocations: 0 / 273.4 MB, free: 472 kB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005214/0.01155, allocations: 232.6 kB / 273.6 MB, free: 236 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.669e-05/0.01163, allocations: 85.11 kB / 273.7 MB, free: 132 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.01187, allocations: 233.7 kB / 273.9 MB, free: 15.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.687e-05/0.01191, allocations: 45.69 kB / 274 MB, free: 15.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.01207, allocations: 187.5 kB / 274.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.682e-05/0.01215, allocations: 67.52 kB / 274.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.01232, allocations: 111.3 kB / 274.3 MB, free: 15.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002855/0.0126, allocations: 0.5119 MB / 274.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.01274, allocations: 63.75 kB / 274.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.013, allocations: 176.6 kB / 275.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003435/0.01334, allocations: 228.6 kB / 275.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.01335, allocations: 8 kB / 275.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000461/0.01381, allocations: 269.2 kB / 275.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.01383, allocations: 11.98 kB / 275.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.01384, allocations: 0 / 275.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.01385, allocations: 4 kB / 275.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.01401, allocations: 39.92 kB / 275.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.01402, allocations: 8.281 kB / 275.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.01413, allocations: 23.84 kB / 275.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.54e-05/0.01416, allocations: 23.92 kB / 275.7 MB, free: 14 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 0.0001924/0.01435, allocations: 196.5 kB / 275.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.145e-05/0.01439, allocations: 23.89 kB / 275.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003906/0.01479, allocations: 194.5 kB / 276.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.01479, allocations: 0 / 276.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.01479, allocations: 4 kB / 276.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.0148, allocations: 4 kB / 276.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008606/0.01566, allocations: 0.5868 MB / 276.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.01566, allocations: 0 / 276.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.401e-05/0.01575, allocations: 19.92 kB / 276.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.01575, allocations: 0 / 276.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.01577, allocations: 8 kB / 276.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.359e-06/0.01577, allocations: 3.984 kB / 276.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.01577, allocations: 4 kB / 276.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004407/0.01622, allocations: 363.7 kB / 277 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.441e-05/0.01624, allocations: 15.84 kB / 277.1 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.892e-05/0.01627, allocations: 8 kB / 277.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.354e-05/0.01636, allocations: 12 kB / 277.1 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.354e-05/0.01645, allocations: 23.95 kB / 277.1 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.01646, allocations: 4 kB / 277.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.01657, allocations: 147.1 kB / 277.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01657, allocations: 0 / 277.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003245/0.01689, allocations: 51.89 kB / 277.3 MB, free: 12.27 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.000182/0.01707, allocations: 118.9 kB / 277.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004028/0.01748, allocations: 200.2 kB / 277.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01748, allocations: 4.062 kB / 277.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001696/0.01765, allocations: 99.52 kB / 277.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.01794, allocations: 27.86 kB / 277.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006766/0.01862, allocations: 354.8 kB / 278.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001602/0.01878, allocations: 137.3 kB / 278.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.027e-05/0.01886, allocations: 17.95 kB / 278.2 MB, free: 11.26 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.769e-05/0.01893, allocations: 28.48 kB / 278.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01893, allocations: 0 / 278.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of Templates: time 0.006111/0.02504, allocations: 1.952 MB / 280.2 MB, free: 9.312 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.5148272790247574]