Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001828/0.001828, allocations: 191 kB / 18.67 MB, free: 4.434 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.314/1.314, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 47.92 kB / 351.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3095, allocations: 49.43 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00287/0.3125, allocations: 1.48 MB / 402.9 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007357/0.3132, allocations: 277.5 kB / 403.1 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.225e-05/0.3133, allocations: 7.938 kB / 403.1 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.3135, allocations: 23.73 kB / 403.2 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.023e-05/0.3135, allocations: 11.81 kB / 403.2 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004182/0.314, allocations: 111.9 kB / 403.3 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003416/0.3143, allocations: 267.4 kB / 403.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000306/0.3146, allocations: 162.3 kB / 403.7 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.664e-05/0.3147, allocations: 83.77 kB / 403.8 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.3149, allocations: 95.55 kB / 403.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.059e-05/0.3149, allocations: 27.94 kB / 403.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.173e-05/0.315, allocations: 31.98 kB / 403.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.459e-05/0.3151, allocations: 51.83 kB / 404 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.3152, allocations: 103.5 kB / 404.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002999/0.3155, allocations: 247.1 kB / 404.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3155, allocations: 0 / 404.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3156, allocations: 0 / 404.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.3156, allocations: 0 / 404.3 MB, free: 5.957 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006694/0.3162, allocations: 475.8 kB / 404.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3163, allocations: 12.03 kB / 404.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.689e-05/0.3164, allocations: 24.66 kB / 404.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002801/0.3166, allocations: 224.1 kB / 405 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.073e-05/0.3167, allocations: 24.94 kB / 405.1 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.907e-05/0.3167, allocations: 28.38 kB / 405.1 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004303/0.3172, allocations: 243.9 kB / 405.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.3172, allocations: 192 / 405.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/0.3172, allocations: 15.94 kB / 405.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.3172, allocations: 4 kB / 405.4 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002987/0.3175, allocations: 161.7 kB / 405.5 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009814/0.3185, allocations: 0.7011 MB / 406.2 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002931/0.3188, allocations: 166.9 kB / 406.4 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.319, allocations: 84.77 kB / 406.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.319, allocations: 8 kB / 406.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.3192, allocations: 122.9 kB / 406.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.3192, allocations: 0 / 406.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.000442/0.3197, allocations: 209.4 kB / 406.8 MB, free: 3.312 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.3197, allocations: 59.39 kB / 406.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.3198, allocations: 151.8 kB / 407 MB, free: 3.086 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.3199, allocations: 33.7 kB / 407 MB, free: 3.047 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.237e-05/0.32, allocations: 144.6 kB / 407.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.125e-05/0.32, allocations: 63.19 kB / 407.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.579e-05/0.3201, allocations: 74.02 kB / 407.3 MB, free: 2.758 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.3203, allocations: 326.8 kB / 407.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.3204, allocations: 60.62 kB / 407.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.3205, allocations: 132.1 kB / 407.8 MB, free: 2.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002298/0.3208, allocations: 175.5 kB / 408 MB, free: 2.023 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.3208, allocations: 4 kB / 408 MB, free: 2.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003531/0.3211, allocations: 241.2 kB / 408.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.3212, allocations: 4 kB / 408.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3212, allocations: 4 kB / 408.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.3212, allocations: 7.938 kB / 408.2 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.3214, allocations: 31.86 kB / 408.3 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.3214, allocations: 8.203 kB / 408.3 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.408e-05/0.3215, allocations: 31.69 kB / 408.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.729e-05/0.3215, allocations: 12 kB / 408.3 MB, free: 1.68 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001375/0.3217, allocations: 161.7 kB / 408.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.367e-05/0.3217, allocations: 15.84 kB / 408.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003302/0.322, allocations: 198.2 kB / 408.7 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.322, allocations: 0 / 408.7 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3221, allocations: 3.984 kB / 408.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.3221, allocations: 8 kB / 408.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006562/0.3227, allocations: 0.5607 MB / 409.3 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.3227, allocations: 0 / 409.3 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.37e-05/0.3228, allocations: 16 kB / 409.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3228, allocations: 0 / 409.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.3228, allocations: 7.984 kB / 409.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.3229, allocations: 4 kB / 409.3 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3229, allocations: 3.938 kB / 409.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002984/0.3232, allocations: 291.1 kB / 409.6 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.164e-05/0.3232, allocations: 85.02 kB / 409.7 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.3233, allocations: 8 kB / 409.7 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.464e-05/0.3233, allocations: 4 kB / 409.7 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.653e-05/0.3234, allocations: 23.91 kB / 409.7 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.3235, allocations: 15.98 kB / 409.7 MB, free: 188 kB / 318.1 MB Notification: Performance of sorting global known variables: time 4.898e-05/0.3235, allocations: 91.27 kB / 409.8 MB, free: 96 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3235, allocations: 0 / 409.8 MB, free: 96 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.3238, allocations: 55.84 kB / 409.9 MB, free: 40 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001535/0.324, allocations: 107.2 kB / 410 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003152/0.3243, allocations: 180 kB / 410.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3243, allocations: 0 / 410.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001351/0.3245, allocations: 88.28 kB / 410.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.3247, allocations: 20.42 kB / 410.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006174/0.3254, allocations: 353.9 kB / 410.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.3257, allocations: 0.7283 MB / 411.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.092e-05/0.3258, allocations: 23.44 kB / 411.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3258, allocations: 0 / 411.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Templates: time 0.004196/0.33, allocations: 2.405 MB / 413.7 MB, free: 12.07 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches