Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001401/0.001401, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.0012/0.0012, allocations: 146 kB / 25.59 MB, free: 8.918 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 0.9444/0.9444, allocations: 173.4 MB / 202.2 MB, free: 8.277 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 269.2 MB, free: 9.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.641e-05/2.788e-05, allocations: 4.844 kB / 269.2 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002248/0.002276, allocations: 1.679 MB / 270.8 MB, free: 8.133 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006167/0.002893, allocations: 291.1 kB / 271.1 MB, free: 7.848 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.963e-05/0.002992, allocations: 8.688 kB / 271.1 MB, free: 7.84 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.00313, allocations: 27.67 kB / 271.2 MB, free: 7.812 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.961e-05/0.00317, allocations: 16.59 kB / 271.2 MB, free: 7.797 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004271/0.003597, allocations: 132.3 kB / 271.3 MB, free: 7.668 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002536/0.00385, allocations: 279.4 kB / 271.6 MB, free: 7.395 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.004096, allocations: 165.2 kB / 271.7 MB, free: 7.227 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.004213, allocations: 149.5 kB / 271.9 MB, free: 7.082 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.004327, allocations: 67.78 kB / 272 MB, free: 7.016 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.849e-05/0.004366, allocations: 24 kB / 272 MB, free: 6.992 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.933e-05/0.004435, allocations: 35.97 kB / 272 MB, free: 6.957 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.657e-05/0.004482, allocations: 51.83 kB / 272.1 MB, free: 6.906 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.952e-05/0.004541, allocations: 77.83 kB / 272.1 MB, free: 6.832 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.004767, allocations: 191.3 kB / 272.3 MB, free: 6.645 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.00477, allocations: 0 / 272.3 MB, free: 6.645 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.00477, allocations: 3.938 kB / 272.3 MB, free: 6.641 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.004775, allocations: 0 / 272.3 MB, free: 6.641 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.0004842/0.005259, allocations: 0.5158 MB / 272.8 MB, free: 6.086 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.00529, allocations: 8.031 kB / 272.9 MB, free: 6.078 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.299e-05/0.005353, allocations: 46.81 kB / 272.9 MB, free: 6.035 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.005529, allocations: 180.3 kB / 273.1 MB, free: 5.832 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.005555, allocations: 20.88 kB / 273.1 MB, free: 5.812 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.369e-05/0.005579, allocations: 24.38 kB / 273.1 MB, free: 5.789 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.00581, allocations: 236.7 kB / 273.3 MB, free: 5.531 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.00582, allocations: 1.438 kB / 273.4 MB, free: 5.531 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.005836, allocations: 12.38 kB / 273.4 MB, free: 5.52 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.005844, allocations: 4.375 kB / 273.4 MB, free: 5.516 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.877e-05/0.005942, allocations: 84.52 kB / 273.5 MB, free: 5.438 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008344/0.006777, allocations: 1.047 MB / 274.5 MB, free: 4.344 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.006965, allocations: 138.4 kB / 274.6 MB, free: 4.184 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.903e-05/0.007014, allocations: 59.28 kB / 274.7 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.007031, allocations: 8.719 kB / 274.7 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001232/0.007155, allocations: 128.1 kB / 274.8 MB, free: 3.961 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.007156, allocations: 0.5 kB / 274.8 MB, free: 3.961 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002482/0.007404, allocations: 184.2 kB / 275 MB, free: 3.777 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.007447, allocations: 89.09 kB / 275.1 MB, free: 3.672 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.007553, allocations: 224.4 kB / 275.3 MB, free: 3.438 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.007574, allocations: 37.7 kB / 275.3 MB, free: 3.395 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.001e-05/0.007654, allocations: 183.5 kB / 275.5 MB, free: 3.207 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.00769, allocations: 63.55 kB / 275.6 MB, free: 3.145 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.42e-05/0.007775, allocations: 95.23 kB / 275.7 MB, free: 3.043 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.007887, allocations: 0.5039 MB / 276.2 MB, free: 2.527 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.066e-05/0.007927, allocations: 31.75 kB / 276.2 MB, free: 2.496 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.718e-05/0.008015, allocations: 148.5 kB / 276.4 MB, free: 2.309 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.008149, allocations: 164.8 kB / 276.5 MB, free: 2.105 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.008151, allocations: 0 / 276.5 MB, free: 2.105 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00021/0.008361, allocations: 221.8 kB / 276.7 MB, free: 1.883 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.008377, allocations: 11.94 kB / 276.8 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.008382, allocations: 0 / 276.8 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.008394, allocations: 4 kB / 276.8 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.33e-05/0.008487, allocations: 39.92 kB / 276.8 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.008491, allocations: 4 kB / 276.8 MB, free: 1.824 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.243e-05/0.008554, allocations: 31.77 kB / 276.8 MB, free: 1.793 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.008572, allocations: 12 kB / 276.8 MB, free: 1.781 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: 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.0001064/0.008678, allocations: 192.7 kB / 277 MB, free: 1.582 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.418e-05/0.008703, allocations: 27.84 kB / 277.1 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001926/0.008895, allocations: 164.5 kB / 277.2 MB, free: 1.391 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.008899, allocations: 4 kB / 277.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.008901, allocations: 0 / 277.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.008906, allocations: 0 / 277.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004034/0.009309, allocations: 0.4949 MB / 277.7 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.009311, allocations: 0 / 277.7 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.054e-05/0.009352, allocations: 19.92 kB / 277.7 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.009355, allocations: 8 kB / 277.7 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.009365, allocations: 4 kB / 277.7 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.009368, allocations: 4 kB / 277.8 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.009369, allocations: 0 / 277.8 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001774/0.009546, allocations: 315.4 kB / 278.1 MB, free: 500 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.556e-05/0.009562, allocations: 19.83 kB / 278.1 MB, free: 480 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.009579, allocations: 8 kB / 278.1 MB, free: 472 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.465e-05/0.009624, allocations: 4 kB / 278.1 MB, free: 468 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/0.009673, allocations: 27.89 kB / 278.1 MB, free: 440 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.009682, allocations: 4 kB / 278.1 MB, free: 436 kB / 250.7 MB Notification: Performance of sorting global known variables: time 4.076e-05/0.009722, allocations: 135.2 kB / 278.3 MB, free: 300 kB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009723, allocations: 4 kB / 278.3 MB, free: 296 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002181/0.009941, allocations: 59.78 kB / 278.3 MB, free: 236 kB / 250.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,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: 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.000116/0.01006, allocations: 114.9 kB / 278.4 MB, free: 112 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001948/0.01025, allocations: 140.4 kB / 278.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01025, allocations: 0 / 278.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.939e-05/0.01032, allocations: 77.08 kB / 278.6 MB, free: 15.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.01053, allocations: 28 kB / 278.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003961/0.01093, allocations: 351.1 kB / 279 MB, free: 15.49 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.03e-05/0.01098, allocations: 80.33 kB / 279.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.527e-05/0.01104, allocations: 25.94 kB / 279.1 MB, free: 15.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.765e-05/0.01113, allocations: 102.2 kB / 279.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of SimCode: time 8.41e-07/0.01113, allocations: 4 kB / 279.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of Templates: time 0.00411/0.01524, allocations: 2.221 MB / 281.4 MB, free: 13.08 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.7851226199418306]