Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete") translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008364/0.008363, allocations: 100.3 kB / 15.73 MB, free: 5.977 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.001628/0.001629, allocations: 197.3 kB / 16.67 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.739/1.739, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4461/0.4461, allocations: 39.95 MB / 309.8 MB, free: 9.383 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 71.89 kB / 435.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.3785, allocations: 56.87 MB / 492.6 MB, free: 19.74 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.00316/0.3817, allocations: 1.924 MB / 494.6 MB, free: 18.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.383, allocations: 0.6946 MB / 495.3 MB, free: 17.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.3831, allocations: 6.062 kB / 495.3 MB, free: 17.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002519/0.3834, allocations: 46.48 kB / 495.3 MB, free: 17.87 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.3835, allocations: 63.53 kB / 495.4 MB, free: 17.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004135/0.3839, allocations: 111.4 kB / 495.5 MB, free: 17.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000326/0.3843, allocations: 273.6 kB / 495.7 MB, free: 17.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.3845, allocations: 53.22 kB / 495.8 MB, free: 17.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.3847, allocations: 127 kB / 495.9 MB, free: 17.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003092/0.385, allocations: 169.8 kB / 496.1 MB, free: 17.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.835e-05/0.3851, allocations: 21.06 kB / 496.1 MB, free: 17.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.959e-05/0.3851, allocations: 21.5 kB / 496.1 MB, free: 17.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.3853, allocations: 80.59 kB / 496.2 MB, free: 17.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.3854, allocations: 125.1 kB / 496.3 MB, free: 17.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000356/0.3858, allocations: 259.1 kB / 496.6 MB, free: 17.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3858, allocations: 2.109 kB / 496.6 MB, free: 17.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3858, allocations: 4 kB / 496.6 MB, free: 17.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.056e-06/0.3858, allocations: 0 / 496.6 MB, free: 17.29 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001346/0.3872, allocations: 0.6327 MB / 497.2 MB, free: 16.81 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.3872, allocations: 13.39 kB / 497.2 MB, free: 16.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.887e-05/0.3873, allocations: 33.34 kB / 497.3 MB, free: 16.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002709/0.3876, allocations: 255.3 kB / 497.5 MB, free: 16.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.955e-05/0.3876, allocations: 19.14 kB / 497.5 MB, free: 16.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.442e-05/0.3876, allocations: 26.2 kB / 497.6 MB, free: 16.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004652/0.3881, allocations: 234.9 kB / 497.8 MB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3881, allocations: 0 / 497.8 MB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.3882, allocations: 9.344 kB / 497.8 MB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.3882, allocations: 3.75 kB / 497.8 MB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002898/0.3885, allocations: 131.4 kB / 497.9 MB, free: 16.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.3896, allocations: 0.5595 MB / 498.5 MB, free: 16.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000632/0.3902, allocations: 314.9 kB / 498.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002497/0.3905, allocations: 128.3 kB / 498.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.3905, allocations: 9.875 kB / 498.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004825/0.391, allocations: 248.6 kB / 499.2 MB, free: 15.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.345e-06/0.391, allocations: 0 / 499.2 MB, free: 15.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.001223/0.3923, allocations: 0.5692 MB / 499.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.776e-05/0.3924, allocations: 75.83 kB / 499.8 MB, free: 15.47 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002559/0.3926, allocations: 207.2 kB / 0.4883 GB, free: 15.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.3927, allocations: 42.45 kB / 0.4883 GB, free: 15.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.3928, allocations: 136.2 kB / 0.4885 GB, free: 15.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.3929, allocations: 104.6 kB / 0.4886 GB, free: 15.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.3931, allocations: 92.52 kB / 0.4887 GB, free: 15.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.3932, allocations: 345.5 kB / 0.489 GB, free: 14.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.3934, allocations: 105.1 kB / 0.4891 GB, free: 14.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003966/0.3938, allocations: 287.3 kB / 0.4894 GB, free: 14.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005503/0.3944, allocations: 431.8 kB / 0.4898 GB, free: 14.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.3944, allocations: 1.344 kB / 0.4898 GB, free: 14.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007363/0.3951, allocations: 447.5 kB / 0.4902 GB, free: 13.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.3952, allocations: 8.25 kB / 0.4902 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.3952, allocations: 18.03 kB / 0.4902 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.029e-05/0.3952, allocations: 9.625 kB / 0.4902 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002201/0.3955, allocations: 64.94 kB / 0.4903 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.149e-05/0.3955, allocations: 9.75 kB / 0.4903 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/0.3957, allocations: 37.59 kB / 0.4903 GB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.3957, allocations: 22.62 kB / 0.4904 GB, free: 13.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 (triggeredMax.y,$PRE.triggeredMax.y,triggeredSampler.y,$PRE.triggeredSampler.y,stateSpace.firstTrigger,$PRE.stateSpace.firstTrigger,stateSpace.x[1],$PRE.stateSpace.x[1],stateSpace.x[2],$PRE.stateSpace.x[2],stateSpace.y[1],$PRE.stateSpace.y[1],transferFunction.firstTrigger,$PRE.transferFunction.firstTrigger,transferFunction.x1,$PRE.transferFunction.x1,transferFunction.xext[1],$PRE.transferFunction.xext[1],transferFunction.xext[2],$PRE.transferFunction.xext[2],transferFunction.x[1],$PRE.transferFunction.x[1],transferFunction.y,$PRE.transferFunction.y,unitDelay.firstTrigger,$PRE.unitDelay.firstTrigger,unitDelay.y,$PRE.unitDelay.y,firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,sampler.firstTrigger,$PRE.sampler.firstTrigger,$whenCondition8,sampler.sampleTrigger,$whenCondition1,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,$whenCondition3,unitDelay.sampleTrigger,$whenCondition4,transferFunction.sampleTrigger,$whenCondition5,stateSpace.sampleTrigger,$whenCondition6,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition7,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,sampler.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002011/0.3959, allocations: 208.8 kB / 0.4906 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/0.396, allocations: 30.8 kB / 0.4906 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.836e-05/0.396, allocations: 31.48 kB / 0.4906 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.3961, allocations: 5.125 kB / 0.4906 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.3961, allocations: 0 / 0.4906 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.3961, allocations: 3.281 kB / 0.4906 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001492/0.3976, allocations: 0.9298 MB / 0.4915 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3976, allocations: 0 / 0.4915 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.674e-05/0.3977, allocations: 16.23 kB / 0.4916 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.3977, allocations: 2.078 kB / 0.4916 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.479e-05/0.3977, allocations: 12.34 kB / 0.4916 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.3977, allocations: 1.375 kB / 0.4916 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3978, allocations: 2.172 kB / 0.4916 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007562/0.3985, allocations: 0.5618 MB / 0.4921 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.3986, allocations: 101.4 kB / 0.4922 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.295e-05/0.3986, allocations: 25.55 kB / 0.4922 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.3989, allocations: 26.56 kB / 0.4923 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.565e-05/0.399, allocations: 26.27 kB / 0.4923 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.663e-05/0.399, allocations: 23.36 kB / 0.4923 GB, free: 12.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001359/0.3992, allocations: 158.4 kB / 0.4925 GB, free: 12.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.22e-07/0.3992, allocations: 0 / 0.4925 GB, free: 12.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005138/0.3997, allocations: 75.33 kB / 0.4925 GB, free: 12.61 MB / 382.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: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulseStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.0001826/0.3999, allocations: 132.5 kB / 0.4927 GB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006651/0.4006, allocations: 333.5 kB / 0.493 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4006, allocations: 0 / 0.493 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002917/0.4009, allocations: 167.4 kB / 0.4931 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.4013, allocations: 46.7 kB / 0.4932 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.4025, allocations: 0.5161 MB / 0.4937 GB, free: 12.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.4029, allocations: 0.7612 MB / 0.4944 GB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.403, allocations: 33.34 kB / 0.4945 GB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.682e-05/0.4031, allocations: 35.33 kB / 0.4945 GB, free: 11.35 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.4031, allocations: 0 / 0.4945 GB, free: 11.35 MB / 382.1 MB Notification: Performance of Templates: time 0.008333/0.4114, allocations: 3.285 MB / 0.4977 GB, free: 9.816 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe 2>&1)