Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001266, allocations: 116.8 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.454/1.454, allocations: 230.5 MB / 255.4 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 71.83 kB / 374.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1235, allocations: 53.32 MB / 428 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00342/0.1269, allocations: 1.691 MB / 429.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007495/0.1277, allocations: 287.2 kB / 430 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.838e-05/0.1278, allocations: 7.938 kB / 430 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.1279, allocations: 19.73 kB / 430 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.221e-05/0.128, allocations: 19.75 kB / 430.1 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004142/0.1284, allocations: 115.8 kB / 430.2 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003618/0.1287, allocations: 271.5 kB / 430.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000305/0.1291, allocations: 162.9 kB / 430.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.1292, allocations: 95.7 kB / 430.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.1293, allocations: 95.59 kB / 430.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.675e-05/0.1294, allocations: 27.94 kB / 430.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.523e-05/0.1295, allocations: 39.92 kB / 430.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.227e-05/0.1295, allocations: 59.81 kB / 430.9 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.1297, allocations: 103.5 kB / 431 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.13, allocations: 258.9 kB / 431.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.13, allocations: 0 / 431.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.13, allocations: 0 / 431.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.13, allocations: 0 / 431.3 MB, free: 1.133 MB / 350.1 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.0007735/0.1308, allocations: 0.4905 MB / 431.7 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.1308, allocations: 12.03 kB / 431.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002773/0.1311, allocations: 32.78 kB / 431.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.1314, allocations: 240 kB / 432 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.137e-05/0.1315, allocations: 28.94 kB / 432.1 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.1315, allocations: 28.38 kB / 432.1 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2522/0.3837, allocations: 262.7 kB / 432.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.3837, allocations: 3.938 kB / 432.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.3837, allocations: 13.17 kB / 432.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.3837, allocations: 5.125 kB / 432.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004551/0.3842, allocations: 163.7 kB / 432.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.3854, allocations: 0.9635 MB / 433.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.3857, allocations: 158 kB / 433.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.3858, allocations: 70.19 kB / 433.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.3858, allocations: 5.094 kB / 433.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002181/0.386, allocations: 137.8 kB / 433.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.555e-06/0.386, allocations: 2.719 kB / 433.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004764/0.3865, allocations: 219.1 kB / 434.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.3866, allocations: 88.38 kB / 434.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.3867, allocations: 155.3 kB / 434.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.3867, allocations: 37.17 kB / 434.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.3868, allocations: 144.7 kB / 434.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.137e-05/0.3868, allocations: 66.34 kB / 434.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.948e-05/0.3869, allocations: 77.3 kB / 434.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.93e-05/0.387, allocations: 332.2 kB / 434.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.3871, allocations: 68.48 kB / 435 MB, free: 9.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.3872, allocations: 138.6 kB / 435.1 MB, free: 9.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002286/0.3875, allocations: 200.2 kB / 435.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3875, allocations: 1.062 kB / 435.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003576/0.3878, allocations: 253.1 kB / 435.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.3879, allocations: 7.938 kB / 435.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3879, allocations: 4.953 kB / 435.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.3879, allocations: 5.531 kB / 435.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.388, allocations: 34.92 kB / 435.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.388, allocations: 11.38 kB / 435.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.767e-05/0.3881, allocations: 20.66 kB / 435.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.3881, allocations: 11.47 kB / 435.7 MB, free: 9.578 MB / 350.1 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.0001285/0.3883, allocations: 158.9 kB / 435.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.415e-05/0.3883, allocations: 15.92 kB / 435.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.01e-05/0.3883, allocations: 22.53 kB / 435.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3884, allocations: 5.562 kB / 435.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.3884, allocations: 3.938 kB / 435.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3884, allocations: 4.219 kB / 435.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006677/0.389, allocations: 0.5712 MB / 436.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.389, allocations: 8.312 kB / 436.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.272e-05/0.3891, allocations: 15.52 kB / 436.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3891, allocations: 1.219 kB / 436.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.3891, allocations: 11 kB / 436.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3891, allocations: 1.719 kB / 436.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3891, allocations: 1.062 kB / 436.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003051/0.3894, allocations: 279.8 kB / 436.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.168e-05/0.3895, allocations: 99.75 kB / 436.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.3895, allocations: 2.312 kB / 436.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.3896, allocations: 11.09 kB / 436.9 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/0.3897, allocations: 22.98 kB / 436.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.3897, allocations: 6.281 kB / 436.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.408e-05/0.3898, allocations: 101 kB / 437 MB, free: 8.711 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3898, allocations: 416 / 437 MB, free: 8.711 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000299/0.3901, allocations: 56.53 kB / 437.1 MB, free: 8.691 MB / 350.1 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 0.0001157/0.3902, allocations: 103.5 kB / 437.2 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003575/0.3905, allocations: 172.3 kB / 437.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3905, allocations: 0 / 437.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.3907, allocations: 67.58 kB / 437.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.391, allocations: 24.58 kB / 437.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006002/0.3916, allocations: 373.4 kB / 437.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.3918, allocations: 0.7273 MB / 438.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.954e-05/0.3918, allocations: 24.22 kB / 438.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3918, allocations: 0 / 438.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of Templates: time 0.005681/0.3975, allocations: 2.285 MB / 440.8 MB, free: 7.348 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.879565187031403]