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.0009723/0.0009723, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001031/0.001031, allocations: 164.9 kB / 24.99 MB, free: 8.793 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 1.094/1.094, allocations: 177.1 MB / 205.3 MB, free: 5.648 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.184e-06/2.184e-06, allocations: 0 / 273 MB, free: 1.902 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.419e-05/3.638e-05, allocations: 2.312 kB / 273 MB, free: 1.898 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002681/0.002717, allocations: 1.713 MB / 274.7 MB, free: 180 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007746/0.003492, allocations: 303 kB / 275 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.003616, allocations: 4 kB / 275 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001326/0.003749, allocations: 27.67 kB / 275.1 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.333e-05/0.003792, allocations: 19.8 kB / 275.1 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.004234, allocations: 127.7 kB / 275.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003248/0.004559, allocations: 279.4 kB / 275.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002868/0.004846, allocations: 159.7 kB / 275.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.004983, allocations: 139.8 kB / 275.8 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.005109, allocations: 79.69 kB / 275.8 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.188e-05/0.00514, allocations: 24 kB / 275.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.473e-05/0.005205, allocations: 28 kB / 275.9 MB, free: 15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.606e-05/0.005261, allocations: 59.8 kB / 276 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.817e-05/0.005329, allocations: 71.81 kB / 276 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.00557, allocations: 191.2 kB / 276.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.005573, allocations: 0 / 276.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.005574, allocations: 4 kB / 276.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.005578, allocations: 0 / 276.2 MB, free: 14.68 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.0005518/0.00613, allocations: 0.5073 MB / 276.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.006168, allocations: 11.97 kB / 276.7 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.006386, allocations: 60.77 kB / 276.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.006602, allocations: 180.2 kB / 277 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.006634, allocations: 20.88 kB / 277 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.762e-05/0.006662, allocations: 28.38 kB / 277 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003018/0.006964, allocations: 240.8 kB / 277.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.006974, allocations: 4.188 kB / 277.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.006994, allocations: 16.36 kB / 277.3 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.007006, allocations: 4.375 kB / 277.3 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.007166, allocations: 106.8 kB / 277.4 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000824/0.00799, allocations: 1.057 MB / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.008207, allocations: 154.3 kB / 278.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.916e-05/0.008276, allocations: 59.36 kB / 278.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.008292, allocations: 4 kB / 278.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001472/0.00844, allocations: 142.7 kB / 278.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.008441, allocations: 0 / 278.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003071/0.008748, allocations: 190.2 kB / 279 MB, free: 11.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.008798, allocations: 89.05 kB / 279.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.008911, allocations: 217.3 kB / 279.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.008933, allocations: 37.7 kB / 279.3 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.762e-05/0.009021, allocations: 195.5 kB / 279.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.78e-05/0.009059, allocations: 59.48 kB / 279.6 MB, free: 11.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.893e-05/0.009138, allocations: 83.34 kB / 279.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.009249, allocations: 0.5001 MB / 280.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.569e-05/0.009315, allocations: 44.09 kB / 280.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.009418, allocations: 144.8 kB / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.009591, allocations: 196.6 kB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.009595, allocations: 8 kB / 280.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002456/0.00984, allocations: 229.2 kB / 280.7 MB, free: 9.781 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.009855, allocations: 8 kB / 280.8 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.009862, allocations: 0 / 280.8 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.009881, allocations: 4 kB / 280.8 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.01001, allocations: 39.92 kB / 280.8 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.01002, allocations: 16.19 kB / 280.8 MB, free: 9.715 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.681e-05/0.01009, allocations: 27.84 kB / 280.8 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.0101, allocations: 12 kB / 280.9 MB, free: 9.676 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.0001081/0.01021, allocations: 188.4 kB / 281 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.01023, allocations: 27.84 kB / 281.1 MB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.692e-05/0.01027, allocations: 24.92 kB / 281.1 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.01027, allocations: 0 / 281.1 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.01028, allocations: 4 kB / 281.1 MB, free: 9.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.01029, allocations: 0 / 281.1 MB, free: 9.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000449/0.01074, allocations: 0.5265 MB / 281.6 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.01074, allocations: 4 kB / 281.6 MB, free: 8.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.091e-05/0.01078, allocations: 15.94 kB / 281.6 MB, free: 8.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.01078, allocations: 0 / 281.6 MB, free: 8.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.01079, allocations: 11.98 kB / 281.6 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.0108, allocations: 0 / 281.6 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.0108, allocations: 0 / 281.6 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002146/0.01101, allocations: 319.3 kB / 282 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.302e-05/0.01102, allocations: 15.94 kB / 282 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.01104, allocations: 0 / 282 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.586e-05/0.01109, allocations: 8 kB / 282 MB, free: 8.469 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.01115, allocations: 27.95 kB / 282 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.01116, allocations: 4 kB / 282 MB, free: 8.438 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.854e-05/0.01121, allocations: 143.1 kB / 282.2 MB, free: 8.297 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01121, allocations: 0 / 282.2 MB, free: 8.297 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002022/0.01141, allocations: 55.78 kB / 282.2 MB, free: 8.242 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 8.929e-05/0.0115, allocations: 107.2 kB / 282.3 MB, free: 8.125 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002164/0.01171, allocations: 160.8 kB / 282.5 MB, free: 7.965 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.01172, allocations: 0 / 282.5 MB, free: 7.965 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.262e-05/0.0118, allocations: 86.02 kB / 282.6 MB, free: 7.879 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.01202, allocations: 24 kB / 282.6 MB, free: 7.855 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004523/0.01247, allocations: 338.5 kB / 282.9 MB, free: 7.496 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.04e-05/0.01252, allocations: 84.28 kB / 283 MB, free: 7.395 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.761e-05/0.01258, allocations: 22.02 kB / 283 MB, free: 7.371 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.722e-05/0.01262, allocations: 24.48 kB / 283 MB, free: 7.344 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01262, allocations: 0 / 283 MB, free: 7.344 MB / 266.7 MB Notification: Performance of Templates: time 0.003722/0.01635, allocations: 1.782 MB / 284.8 MB, free: 5.598 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: 3.003786203917116]