Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 114.2 kB / 17.07 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 194.8 kB / 18 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001018/0.001018, allocations: 51.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4016/0.4026, allocations: 49.42 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003113/0.4058, allocations: 1.673 MB / 402.4 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007696/0.4066, allocations: 295.1 kB / 402.6 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.985e-05/0.4067, allocations: 11.88 kB / 402.7 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.4068, allocations: 23.73 kB / 402.7 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.156e-05/0.4069, allocations: 11.81 kB / 402.7 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004417/0.4074, allocations: 131.8 kB / 402.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003393/0.4077, allocations: 279.4 kB / 403.1 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003314/0.408, allocations: 179 kB / 403.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.4082, allocations: 91.7 kB / 403.4 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.4083, allocations: 103.5 kB / 403.5 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.462e-05/0.4083, allocations: 24 kB / 403.5 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.786e-05/0.4084, allocations: 32 kB / 403.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.807e-05/0.4085, allocations: 55.83 kB / 403.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.4086, allocations: 103.5 kB / 403.7 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003196/0.409, allocations: 255 kB / 403.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.409, allocations: 4 kB / 403.9 MB, free: 5.633 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.409, allocations: 4 kB / 403.9 MB, free: 5.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.409, allocations: 0 / 403.9 MB, free: 5.629 MB / 318.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.0006712/0.4097, allocations: 0.4919 MB / 404.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.4097, allocations: 11.89 kB / 404.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.309e-05/0.4098, allocations: 24.69 kB / 404.5 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.4101, allocations: 232 kB / 404.7 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.985e-05/0.4101, allocations: 24.94 kB / 404.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.041e-05/0.4102, allocations: 32.38 kB / 404.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004842/0.4107, allocations: 278.5 kB / 405 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.4107, allocations: 4.188 kB / 405 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.4107, allocations: 7.938 kB / 405 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.4107, allocations: 8 kB / 405 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/0.4111, allocations: 165.6 kB / 405.2 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.4122, allocations: 0.9633 MB / 406.2 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.4125, allocations: 177.4 kB / 406.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.4127, allocations: 89.56 kB / 406.4 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.4127, allocations: 7.938 kB / 406.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.4129, allocations: 137.1 kB / 406.6 MB, free: 2.789 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.4129, allocations: 0 / 406.6 MB, free: 2.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004577/0.4134, allocations: 222.9 kB / 406.8 MB, free: 2.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.4134, allocations: 85.11 kB / 406.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.4136, allocations: 153.6 kB / 407 MB, free: 2.305 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.4136, allocations: 33.7 kB / 407 MB, free: 2.266 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.4137, allocations: 144.5 kB / 407.2 MB, free: 2.121 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.329e-05/0.4138, allocations: 63.31 kB / 407.2 MB, free: 2.059 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.899e-05/0.4139, allocations: 85.67 kB / 407.3 MB, free: 1.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.4141, allocations: 326.8 kB / 407.6 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.4142, allocations: 59.97 kB / 407.7 MB, free: 1.582 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.4144, allocations: 144.3 kB / 407.8 MB, free: 1.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/0.4147, allocations: 208.8 kB / 408 MB, free: 1.176 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.4147, allocations: 0 / 408 MB, free: 1.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003594/0.415, allocations: 245.2 kB / 408.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4151, allocations: 8 kB / 408.3 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.4151, allocations: 288 / 408.3 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.4151, allocations: 8 kB / 408.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.4153, allocations: 43.84 kB / 408.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.4153, allocations: 4 kB / 408.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.4154, allocations: 27.69 kB / 408.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.4155, allocations: 12 kB / 408.4 MB, free: 0.8281 MB / 318.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.0001784/0.4156, allocations: 165.6 kB / 408.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.4157, allocations: 15.91 kB / 408.6 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003873/0.4161, allocations: 190.3 kB / 408.8 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.4161, allocations: 7.984 kB / 408.8 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4161, allocations: 0 / 408.8 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4161, allocations: 0 / 408.8 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007925/0.4169, allocations: 0.5948 MB / 409.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4169, allocations: 0 / 409.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.047e-05/0.417, allocations: 19.98 kB / 409.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.417, allocations: 4 kB / 409.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.4171, allocations: 7.938 kB / 409.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/0.4171, allocations: 15.94 kB / 409.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4171, allocations: 0 / 409.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003438/0.4174, allocations: 284 kB / 409.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/0.4175, allocations: 88.95 kB / 409.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.564e-05/0.4175, allocations: 11.92 kB / 409.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.984e-05/0.4176, allocations: 8 kB / 409.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.328e-05/0.4177, allocations: 23.97 kB / 409.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.4177, allocations: 8 kB / 409.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.102e-05/0.4178, allocations: 98.78 kB / 409.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4178, allocations: 0 / 409.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003444/0.4182, allocations: 55.75 kB / 410 MB, free: 15.13 MB / 334.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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0002182/0.4184, allocations: 119.1 kB / 410.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003931/0.4188, allocations: 184.4 kB / 410.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4188, allocations: 4.188 kB / 410.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.419, allocations: 88.28 kB / 410.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.4193, allocations: 27.08 kB / 410.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008019/0.4201, allocations: 345 kB / 410.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.4205, allocations: 0.7363 MB / 411.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.709e-05/0.4206, allocations: 29.92 kB / 411.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.299e-05/0.4207, allocations: 19.44 kB / 411.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4207, allocations: 4 kB / 411.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of Templates: time 0.005746/0.4264, allocations: 1.929 MB / 413.4 MB, free: 11.61 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches