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.001025/0.001025, allocations: 78.19 kB / 21.42 MB, free: 3.082 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.0009614/0.0009614, allocations: 151.9 kB / 24.81 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.083/1.083, allocations: 173.4 MB / 201.4 MB, free: 9.242 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.793e-06/1.793e-06, allocations: 0 / 268.4 MB, free: 6.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.508e-05/2.687e-05, allocations: 2.312 kB / 268.4 MB, free: 6.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003309/0.003336, allocations: 1.679 MB / 270.1 MB, free: 4.566 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008047/0.00414, allocations: 307.1 kB / 270.4 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.004271, allocations: 7.938 kB / 270.4 MB, free: 4.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.004429, allocations: 23.73 kB / 270.4 MB, free: 4.234 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.604e-05/0.004495, allocations: 27.72 kB / 270.4 MB, free: 4.207 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005539/0.005049, allocations: 119.8 kB / 270.5 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003715/0.00542, allocations: 287.3 kB / 270.8 MB, free: 3.809 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003244/0.005745, allocations: 155.7 kB / 271 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.005922, allocations: 143.7 kB / 271.1 MB, free: 3.508 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.006068, allocations: 75.75 kB / 271.2 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/0.006114, allocations: 24 kB / 271.2 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.386e-05/0.006197, allocations: 28 kB / 271.2 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.895e-05/0.006266, allocations: 63.8 kB / 271.3 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.369e-05/0.00634, allocations: 63.83 kB / 271.4 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000286/0.006626, allocations: 191.3 kB / 271.5 MB, free: 3.07 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.006629, allocations: 0 / 271.5 MB, free: 3.07 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.00663, allocations: 0 / 271.5 MB, free: 3.07 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.006636, allocations: 4 kB / 271.5 MB, free: 3.066 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.0006244/0.00726, allocations: 0.519 MB / 272.1 MB, free: 2.508 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.007302, allocations: 15.91 kB / 272.1 MB, free: 2.492 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.34e-05/0.007385, allocations: 40.8 kB / 272.1 MB, free: 2.453 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.007615, allocations: 180.3 kB / 272.3 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.007647, allocations: 20.88 kB / 272.3 MB, free: 2.23 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.007685, allocations: 28.38 kB / 272.3 MB, free: 2.203 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003171/0.008002, allocations: 232.7 kB / 272.6 MB, free: 1.945 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.008014, allocations: 4.188 kB / 272.6 MB, free: 1.941 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.008035, allocations: 8.375 kB / 272.6 MB, free: 1.934 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.008046, allocations: 12.38 kB / 272.6 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.008191, allocations: 83.28 kB / 272.7 MB, free: 1.844 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.00924, allocations: 1.05 MB / 273.7 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.009448, allocations: 138.4 kB / 273.9 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.598e-05/0.009514, allocations: 54.53 kB / 273.9 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.009536, allocations: 8 kB / 273.9 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001587/0.009695, allocations: 132.1 kB / 274 MB, free: 376 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.355e-06/0.009697, allocations: 4 kB / 274.1 MB, free: 372 kB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003274/0.01002, allocations: 184.4 kB / 274.2 MB, free: 184 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.01007, allocations: 81.11 kB / 274.3 MB, free: 84 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.01023, allocations: 223.6 kB / 274.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.145e-05/0.01026, allocations: 41.69 kB / 274.6 MB, free: 15.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.906e-05/0.01036, allocations: 183.5 kB / 274.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.277e-05/0.01042, allocations: 63.52 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.01052, allocations: 91.27 kB / 274.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.01067, allocations: 0.4962 MB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.539e-05/0.01073, allocations: 35.75 kB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.01085, allocations: 156.5 kB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001872/0.01104, allocations: 176.7 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.01105, allocations: 4 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003022/0.01135, allocations: 213.3 kB / 276 MB, free: 14.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.01137, allocations: 7.938 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.01138, allocations: 7.984 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.01139, allocations: 4 kB / 276 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.01152, allocations: 35.92 kB / 276 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.01153, allocations: 4 kB / 276 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.916e-05/0.01162, allocations: 28.06 kB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.01164, allocations: 19.98 kB / 276.1 MB, free: 14.18 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.0001249/0.01177, allocations: 188.5 kB / 276.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-05/0.0118, allocations: 27.78 kB / 276.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000246/0.01205, allocations: 154.5 kB / 276.4 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.01205, allocations: 3.984 kB / 276.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.01206, allocations: 4 kB / 276.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.01206, allocations: 0 / 276.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005397/0.0126, allocations: 0.4936 MB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.0126, allocations: 0 / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.314e-05/0.01267, allocations: 27.92 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.01267, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.01268, allocations: 4 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.01269, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.01269, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.01294, allocations: 319.8 kB / 277.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.81e-05/0.01296, allocations: 19.84 kB / 277.3 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.832e-05/0.01299, allocations: 7.984 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.007e-05/0.01307, allocations: 8 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.917e-05/0.01313, allocations: 19.97 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.01314, allocations: 19.92 kB / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.883e-05/0.0132, allocations: 142.7 kB / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0132, allocations: 0 / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003709/0.01357, allocations: 59.78 kB / 277.6 MB, free: 12.62 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,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.0001529/0.01373, allocations: 103 kB / 277.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002486/0.01397, allocations: 147.6 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01398, allocations: 4.5 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.01408, allocations: 71.53 kB / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.01442, allocations: 31.92 kB / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005151/0.01493, allocations: 342.4 kB / 278.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.752e-05/0.01499, allocations: 76.33 kB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.625e-05/0.01507, allocations: 25.94 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.01518, allocations: 106.2 kB / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01518, allocations: 0 / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of Templates: time 0.005287/0.02047, allocations: 2.177 MB / 280.6 MB, free: 9.516 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.876715305261314]