Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001112/0.001112, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001015/0.001015, allocations: 158.4 kB / 24.99 MB, free: 9.285 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.9819/0.9819, allocations: 177.1 MB / 205.3 MB, free: 5.605 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.113e-05/3.308e-05, allocations: 2.312 kB / 273 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003352/0.003385, allocations: 1.747 MB / 274.8 MB, free: 100 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008149/0.0042, allocations: 299.1 kB / 275.1 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.004318, allocations: 4 kB / 275.1 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.004487, allocations: 31.61 kB / 275.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.085e-05/0.004558, allocations: 19.8 kB / 275.1 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004707/0.005029, allocations: 127.7 kB / 275.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003515/0.00538, allocations: 275.4 kB / 275.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003133/0.005694, allocations: 158.1 kB / 275.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.00587, allocations: 147.7 kB / 275.8 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.006029, allocations: 67.78 kB / 275.9 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.006077, allocations: 27.98 kB / 275.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.002e-05/0.006167, allocations: 24 kB / 275.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.123e-05/0.006248, allocations: 59.81 kB / 276 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.006351, allocations: 67.81 kB / 276 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003446/0.006696, allocations: 187.2 kB / 276.2 MB, free: 14.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.006701, allocations: 0 / 276.2 MB, free: 14.63 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.006704, allocations: 3.984 kB / 276.2 MB, free: 14.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.006711, allocations: 0 / 276.2 MB, free: 14.62 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.0007335/0.007445, allocations: 0.5151 MB / 276.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.007495, allocations: 8.031 kB / 276.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003094/0.007805, allocations: 52.78 kB / 276.8 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.008091, allocations: 184.3 kB / 277 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.106e-05/0.008132, allocations: 24.86 kB / 277 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.008173, allocations: 24.38 kB / 277 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.008593, allocations: 244.8 kB / 277.3 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.008605, allocations: 192 / 277.3 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.008633, allocations: 16.31 kB / 277.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.008646, allocations: 4.375 kB / 277.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002261/0.008872, allocations: 106.8 kB / 277.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.01004, allocations: 1.061 MB / 278.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003036/0.01035, allocations: 146.4 kB / 278.6 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.01045, allocations: 63.34 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.01047, allocations: 4 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.01069, allocations: 137.1 kB / 278.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 3.487e-06/0.0107, allocations: 3.984 kB / 278.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004386/0.01114, allocations: 196.6 kB / 279 MB, free: 11.65 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.01119, allocations: 89.05 kB / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.01136, allocations: 213.5 kB / 279.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.01139, allocations: 45.62 kB / 279.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.01151, allocations: 191.5 kB / 279.5 MB, free: 11.08 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.407e-05/0.01156, allocations: 55.58 kB / 279.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.01167, allocations: 91.28 kB / 279.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.01183, allocations: 0.4962 MB / 280.2 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.728e-05/0.01193, allocations: 39.97 kB / 280.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.01208, allocations: 140.8 kB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.01233, allocations: 200.8 kB / 280.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.01234, allocations: 0 / 280.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003684/0.01271, allocations: 233.2 kB / 280.8 MB, free: 9.727 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.01273, allocations: 8 kB / 280.8 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.01274, allocations: 4 kB / 280.8 MB, free: 9.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.01276, allocations: 7.984 kB / 280.8 MB, free: 9.707 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.01292, allocations: 31.92 kB / 280.8 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.01293, allocations: 7.938 kB / 280.8 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.01303, allocations: 31.78 kB / 280.9 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.01305, allocations: 8 kB / 280.9 MB, free: 9.629 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.0001436/0.0132, allocations: 188.8 kB / 281 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.01323, allocations: 27.88 kB / 281.1 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.429e-05/0.01328, allocations: 16.94 kB / 281.1 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.01328, allocations: 4 kB / 281.1 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.01329, allocations: 0 / 281.1 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.01329, allocations: 4 kB / 281.1 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006365/0.01393, allocations: 0.5197 MB / 281.6 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.01393, allocations: 0 / 281.6 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.732e-05/0.014, allocations: 15.94 kB / 281.6 MB, free: 8.805 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.014, allocations: 4 kB / 281.6 MB, free: 8.801 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.01402, allocations: 11.98 kB / 281.7 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.01402, allocations: 0 / 281.7 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.01402, allocations: 0 / 281.7 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.01433, allocations: 329.5 kB / 282 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.795e-05/0.01435, allocations: 15.84 kB / 282 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.981e-05/0.01438, allocations: 8 kB / 282 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.344e-05/0.01446, allocations: 8 kB / 282 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.49e-05/0.01454, allocations: 23.89 kB / 282 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.01455, allocations: 8 kB / 282 MB, free: 8.383 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.296e-05/0.01462, allocations: 139.1 kB / 282.2 MB, free: 8.246 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.01462, allocations: 4 kB / 282.2 MB, free: 8.242 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003389/0.01495, allocations: 51.89 kB / 282.2 MB, free: 8.191 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,transition1.enableFire,step.active,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 0.0001317/0.01509, allocations: 107.2 kB / 282.3 MB, free: 8.074 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002972/0.01538, allocations: 156.3 kB / 282.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.01539, allocations: 4 kB / 282.5 MB, free: 7.914 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.0155, allocations: 74.98 kB / 282.6 MB, free: 7.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.01584, allocations: 28.06 kB / 282.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006241/0.01646, allocations: 338.8 kB / 282.9 MB, free: 7.449 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.491e-05/0.01653, allocations: 80.27 kB / 283 MB, free: 7.352 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.533e-05/0.0166, allocations: 17.95 kB / 283 MB, free: 7.336 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.495e-05/0.01667, allocations: 32.42 kB / 283 MB, free: 7.301 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.01667, allocations: 0 / 283 MB, free: 7.301 MB / 266.7 MB Notification: Performance of Templates: time 0.005058/0.02173, allocations: 1.746 MB / 284.8 MB, free: 5.59 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.89504153188318]