Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009633/0.0009633, allocations: 80.92 kB / 21.49 MB, free: 2.992 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.001024/0.001024, allocations: 172.2 kB / 24.91 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9924/0.9924, allocations: 177.1 MB / 205.3 MB, free: 5.453 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 3.984 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.125e-05/2.392e-05, allocations: 4.703 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002201/0.002225, allocations: 1.708 MB / 275.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005246/0.002749, allocations: 298.9 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.146e-05/0.002831, allocations: 7.938 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.002951, allocations: 23.73 kB / 275.4 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.135e-05/0.002992, allocations: 27.72 kB / 275.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.003321, allocations: 123.7 kB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002322/0.003553, allocations: 279.4 kB / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.003762, allocations: 166.3 kB / 276 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.003876, allocations: 139.8 kB / 276.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.003978, allocations: 75.75 kB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.004004, allocations: 24 kB / 276.3 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.417e-05/0.004058, allocations: 27.94 kB / 276.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.972e-05/0.004108, allocations: 59.81 kB / 276.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.481e-05/0.004163, allocations: 75.8 kB / 276.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001886/0.004351, allocations: 183.2 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.004356, allocations: 11.98 kB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.004356, allocations: 0 / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.00436, allocations: 0 / 276.6 MB, free: 14.09 MB / 266.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.0004284/0.004789, allocations: 395.8 kB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.004821, allocations: 12.03 kB / 277 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.004996, allocations: 52.88 kB / 277.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.005163, allocations: 145.5 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.005189, allocations: 24.88 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.84e-05/0.005218, allocations: 28.38 kB / 277.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.005429, allocations: 230.5 kB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.005438, allocations: 4.188 kB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.005453, allocations: 8.375 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.00546, allocations: 12.31 kB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.749e-05/0.005548, allocations: 71.34 kB / 277.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005604/0.006108, allocations: 0.7232 MB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.00624, allocations: 113.2 kB / 278.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.946e-05/0.00628, allocations: 45.64 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.006296, allocations: 8 kB / 278.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.915e-05/0.006395, allocations: 119.4 kB / 278.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.192e-06/0.006396, allocations: 0 / 278.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001707/0.006567, allocations: 142.2 kB / 278.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.006606, allocations: 81.11 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.333e-05/0.006679, allocations: 161.9 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.006699, allocations: 37.7 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.925e-05/0.006758, allocations: 144.7 kB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.518e-05/0.006794, allocations: 63.48 kB / 279.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.344e-05/0.006857, allocations: 81.62 kB / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.068e-05/0.006928, allocations: 330.9 kB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.151e-05/0.006959, allocations: 27.98 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.439e-05/0.007024, allocations: 104.5 kB / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.007135, allocations: 152.4 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.007138, allocations: 4 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001567/0.007294, allocations: 169.3 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.007309, allocations: 11.94 kB / 280.1 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.007316, allocations: 4 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.007328, allocations: 4 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.33e-05/0.007412, allocations: 35.92 kB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.007418, allocations: 12.27 kB / 280.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.666e-05/0.007475, allocations: 27.78 kB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.007486, allocations: 12 kB / 280.1 MB, free: 10.27 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 8.237e-05/0.007569, allocations: 137.7 kB / 280.3 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/0.007588, allocations: 15.98 kB / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.007619, allocations: 32.8 kB / 280.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.007622, allocations: 4 kB / 280.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.007624, allocations: 0 / 280.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.007628, allocations: 0 / 280.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003213/0.007949, allocations: 368.5 kB / 280.7 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.007951, allocations: 4 kB / 280.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.735e-05/0.007989, allocations: 19.97 kB / 280.7 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.007992, allocations: 4 kB / 280.7 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.007998, allocations: 0 / 280.7 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.008001, allocations: 7.938 kB / 280.7 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.008003, allocations: 4 kB / 280.7 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.00812, allocations: 216.1 kB / 280.9 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.039e-05/0.008131, allocations: 15.84 kB / 281 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.008146, allocations: 8 kB / 281 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.318e-05/0.00819, allocations: 15.98 kB / 281 MB, free: 9.383 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.008226, allocations: 11.97 kB / 281 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.008235, allocations: 8 kB / 281 MB, free: 9.363 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.781e-05/0.008252, allocations: 20.84 kB / 281 MB, free: 9.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.008252, allocations: 0 / 281 MB, free: 9.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001595/0.008412, allocations: 47.89 kB / 281.1 MB, free: 9.293 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: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 19 * 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 7.642e-05/0.008488, allocations: 88.34 kB / 281.2 MB, free: 9.199 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000135/0.008623, allocations: 130 kB / 281.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.008627, allocations: 4.062 kB / 281.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.598e-05/0.008683, allocations: 63.2 kB / 281.3 MB, free: 9.004 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.008823, allocations: 27.92 kB / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003377/0.009161, allocations: 329.9 kB / 281.7 MB, free: 8.629 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.24e-05/0.009203, allocations: 76.33 kB / 281.8 MB, free: 8.535 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.958e-05/0.009253, allocations: 26 kB / 281.8 MB, free: 8.508 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.548e-05/0.009328, allocations: 79.38 kB / 281.9 MB, free: 8.43 MB / 266.7 MB Notification: Performance of SimCode: time 5.52e-07/0.009329, allocations: 0 / 281.9 MB, free: 8.43 MB / 266.7 MB Notification: Performance of Templates: time 0.003384/0.01271, allocations: 1.912 MB / 283.8 MB, free: 6.559 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.6494103972800076]