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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=500,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=500,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002104/0.002104, allocations: 108.7 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004277/0.004277, allocations: 207.9 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.691/1.691, allocations: 230.4 MB / 251.1 MB, free: 8.516 MB / 206.1 MB 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.002039/0.002039, allocations: 67.83 kB / 368.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3032, allocations: 53.3 MB / 422.2 MB, free: 7.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003053/0.3063, allocations: 1.69 MB / 423.9 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007026/0.307, allocations: 299.1 kB / 424.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.973e-05/0.3071, allocations: 4 kB / 424.2 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.3072, allocations: 27.67 kB / 424.2 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.383e-05/0.3073, allocations: 19.8 kB / 424.3 MB, free: 5.867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004129/0.3077, allocations: 127.8 kB / 424.4 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000374/0.3081, allocations: 263.6 kB / 424.7 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003319/0.3084, allocations: 162.9 kB / 424.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.3085, allocations: 99.64 kB / 424.9 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002033/0.3087, allocations: 99.53 kB / 425 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.547e-05/0.3088, allocations: 24 kB / 425 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.26e-05/0.3088, allocations: 31.98 kB / 425.1 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.103e-05/0.3089, allocations: 59.83 kB / 425.1 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.309, allocations: 107.5 kB / 425.2 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003528/0.3094, allocations: 258.5 kB / 425.5 MB, free: 4.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3094, allocations: 0 / 425.5 MB, free: 4.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3094, allocations: 0 / 425.5 MB, free: 4.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.3094, allocations: 0 / 425.5 MB, free: 4.656 MB / 334.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.0008064/0.3102, allocations: 0.4905 MB / 426 MB, free: 4.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.3103, allocations: 12.02 kB / 426 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002853/0.3105, allocations: 40.78 kB / 426 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003422/0.3109, allocations: 228.1 kB / 426.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.3109, allocations: 20.94 kB / 426.3 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.341e-05/0.311, allocations: 32.31 kB / 426.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004863/0.3115, allocations: 274.5 kB / 426.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.3115, allocations: 192 / 426.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.032e-05/0.3115, allocations: 15.94 kB / 426.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.3115, allocations: 4 kB / 426.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003065/0.3118, allocations: 161.6 kB / 426.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.3131, allocations: 0.9596 MB / 427.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.3134, allocations: 165.4 kB / 427.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.3135, allocations: 69.62 kB / 427.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.3135, allocations: 4 kB / 427.9 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002842/0.3138, allocations: 140.9 kB / 428.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.3138, allocations: 0 / 428.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00045/0.3143, allocations: 224.9 kB / 428.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/0.3143, allocations: 85.14 kB / 428.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.3145, allocations: 157.7 kB / 428.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.3145, allocations: 41.69 kB / 428.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.3147, allocations: 136.8 kB / 428.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.178e-05/0.3147, allocations: 63.53 kB / 428.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.3148, allocations: 81.62 kB / 428.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.315, allocations: 330.8 kB / 429.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.3151, allocations: 71.75 kB / 429.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002847/0.3154, allocations: 136.5 kB / 429.4 MB, free: 468 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.3157, allocations: 192.3 kB / 429.6 MB, free: 244 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3157, allocations: 0 / 429.6 MB, free: 244 kB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004215/0.3161, allocations: 249.5 kB / 429.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.3161, allocations: 8 kB / 429.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.3161, allocations: 4 kB / 429.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3162, allocations: 4 kB / 429.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.3163, allocations: 35.92 kB / 429.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.3163, allocations: 15.75 kB / 429.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.3164, allocations: 32.06 kB / 429.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.3164, allocations: 16 kB / 429.9 MB, free: 15.88 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.0001671/0.3166, allocations: 157.7 kB / 430.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/0.3166, allocations: 11.95 kB / 430.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.994e-05/0.3167, allocations: 12.84 kB / 430.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3167, allocations: 4 kB / 430.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3167, allocations: 0 / 430.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.3167, allocations: 0 / 430.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007368/0.3174, allocations: 0.5869 MB / 430.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3174, allocations: 0 / 430.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.775e-05/0.3175, allocations: 19.92 kB / 430.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3175, allocations: 4 kB / 430.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.3175, allocations: 3.984 kB / 430.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.3175, allocations: 3.938 kB / 430.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3175, allocations: 4 kB / 430.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004104/0.318, allocations: 272.1 kB / 431 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.191e-05/0.318, allocations: 92.95 kB / 431.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.318, allocations: 11.98 kB / 431.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.66e-05/0.3181, allocations: 7.938 kB / 431.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.158e-05/0.3182, allocations: 27.91 kB / 431.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.3182, allocations: 4 kB / 431.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.371e-05/0.3183, allocations: 105.9 kB / 431.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3183, allocations: 0 / 431.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003023/0.3186, allocations: 55.89 kB / 431.3 MB, free: 14.39 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.0001274/0.3187, allocations: 103.2 kB / 431.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003411/0.3191, allocations: 174.8 kB / 431.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3191, allocations: 0 / 431.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.3192, allocations: 67.78 kB / 431.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.3195, allocations: 24.61 kB / 431.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007919/0.3203, allocations: 340.4 kB / 432 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.3207, allocations: 0.7326 MB / 432.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.614e-05/0.3208, allocations: 29.88 kB / 432.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.616e-05/0.3209, allocations: 19.44 kB / 432.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3209, allocations: 0 / 432.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Templates: time 0.00624/0.3271, allocations: 1.767 MB / 434.5 MB, free: 11.09 MB / 350.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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] Reference file matches