Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0067/0.0067, allocations: 103.3 kB / 15.73 MB, free: 6.039 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.00117/0.00117, allocations: 187.8 kB / 16.67 MB, free: 5.957 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.66/1.66, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.4298/0.4298, allocations: 39.94 MB / 309.8 MB, free: 9.43 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.001893/0.001893, allocations: 79.89 kB / 435.8 MB, free: 2.473 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4314/0.4333, allocations: 56.88 MB / 492.6 MB, free: 19.49 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003023/0.4363, allocations: 1.509 MB / 494.2 MB, free: 18.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009605/0.4373, allocations: 0.5343 MB / 494.7 MB, free: 18.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.341e-05/0.4374, allocations: 5.062 kB / 494.7 MB, free: 18.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.711e-05/0.4374, allocations: 9.188 kB / 494.7 MB, free: 18.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.4375, allocations: 12.16 kB / 494.7 MB, free: 18.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002375/0.4378, allocations: 34.16 kB / 494.7 MB, free: 18.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.438, allocations: 87.91 kB / 494.8 MB, free: 17.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.4381, allocations: 19.03 kB / 494.8 MB, free: 17.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.4382, allocations: 45.3 kB / 494.9 MB, free: 17.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.4383, allocations: 40.06 kB / 494.9 MB, free: 17.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.54e-05/0.4384, allocations: 15.17 kB / 494.9 MB, free: 17.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.918e-05/0.4384, allocations: 7.938 kB / 495 MB, free: 17.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.938e-05/0.4384, allocations: 19.38 kB / 495 MB, free: 17.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.348e-05/0.4385, allocations: 41.11 kB / 495 MB, free: 17.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.4387, allocations: 73.17 kB / 495.1 MB, free: 17.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.4387, allocations: 0.75 kB / 495.1 MB, free: 17.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4387, allocations: 0 / 495.1 MB, free: 17.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.4387, allocations: 1.188 kB / 495.1 MB, free: 17.85 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006766/0.4394, allocations: 405.9 kB / 495.5 MB, free: 17.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.4395, allocations: 14.52 kB / 495.5 MB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.51e-05/0.4395, allocations: 9.875 kB / 495.5 MB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.4396, allocations: 170.2 kB / 495.7 MB, free: 17.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.4397, allocations: 12.64 kB / 495.7 MB, free: 17.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.4397, allocations: 10.34 kB / 495.7 MB, free: 17.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.4399, allocations: 81.77 kB / 495.8 MB, free: 17.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.4399, allocations: 5.25 kB / 495.8 MB, free: 17.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.4399, allocations: 1.359 kB / 495.8 MB, free: 17.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.44, allocations: 2.469 kB / 495.8 MB, free: 17.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00014/0.4401, allocations: 42.61 kB / 495.8 MB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006443/0.4408, allocations: 327 kB / 496.1 MB, free: 16.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.441, allocations: 91.44 kB / 496.2 MB, free: 16.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.4411, allocations: 46.59 kB / 496.3 MB, free: 16.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.4412, allocations: 5.844 kB / 496.3 MB, free: 16.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002635/0.4414, allocations: 98.14 kB / 496.4 MB, free: 16.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.4414, allocations: 0 / 496.4 MB, free: 16.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005548/0.442, allocations: 187.5 kB / 496.6 MB, free: 16.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.4421, allocations: 64.17 kB / 496.6 MB, free: 16.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.4422, allocations: 123.8 kB / 496.7 MB, free: 16.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.4422, allocations: 33.62 kB / 496.8 MB, free: 16.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.717e-05/0.4423, allocations: 88.77 kB / 496.9 MB, free: 16.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.4423, allocations: 40.47 kB / 496.9 MB, free: 16.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-05/0.4424, allocations: 37.5 kB / 496.9 MB, free: 16.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.443e-05/0.4425, allocations: 325.5 kB / 497.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.4426, allocations: 32.7 kB / 497.3 MB, free: 15.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.4427, allocations: 76.67 kB / 497.4 MB, free: 15.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/0.4429, allocations: 130.9 kB / 497.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.443, allocations: 2.141 kB / 497.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003083/0.4433, allocations: 161.1 kB / 497.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.4433, allocations: 8.938 kB / 497.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.4433, allocations: 2.625 kB / 497.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.4433, allocations: 2.422 kB / 497.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.4435, allocations: 22.44 kB / 497.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.4435, allocations: 8.812 kB / 497.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.033e-05/0.4436, allocations: 11.22 kB / 497.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.4436, allocations: 5.688 kB / 497.7 MB, free: 15.71 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001206/0.4437, allocations: 134 kB / 497.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.4437, allocations: 12.83 kB / 497.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.058e-05/0.4438, allocations: 11.75 kB / 497.9 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.4438, allocations: 0.5 kB / 497.9 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.4438, allocations: 2 kB / 497.9 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.4438, allocations: 4.703 kB / 497.9 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005729/0.4444, allocations: 440.2 kB / 498.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4444, allocations: 0 / 498.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.46e-05/0.4445, allocations: 8.203 kB / 498.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4445, allocations: 2.469 kB / 498.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.4445, allocations: 5.781 kB / 498.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.4445, allocations: 1.188 kB / 498.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4445, allocations: 4.594 kB / 498.3 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003385/0.4449, allocations: 252.6 kB / 498.6 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.976e-05/0.4449, allocations: 83.45 kB / 498.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.506e-05/0.4449, allocations: 3.609 kB / 498.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.4451, allocations: 11.23 kB / 498.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.4451, allocations: 7.75 kB / 498.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.4452, allocations: 4.453 kB / 498.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.537e-05/0.4452, allocations: 103.1 kB / 498.8 MB, free: 14.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4452, allocations: 0 / 498.8 MB, free: 14.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002601/0.4455, allocations: 22.45 kB / 498.8 MB, free: 14.82 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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001211/0.4456, allocations: 108.7 kB / 498.9 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003025/0.4459, allocations: 106.5 kB / 499 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4459, allocations: 0 / 499 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.4461, allocations: 53.03 kB / 499.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.4464, allocations: 27.64 kB / 499.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004437/0.4468, allocations: 194 kB / 499.3 MB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001593/0.447, allocations: 0.6924 MB / 500 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.541e-05/0.447, allocations: 10.44 kB / 500 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.793e-05/0.4471, allocations: 14.38 kB / 0.4883 GB, free: 13.81 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4471, allocations: 4 kB / 0.4883 GB, free: 13.81 MB / 382.1 MB Notification: Performance of Templates: time 0.004043/0.4511, allocations: 1.057 MB / 0.4893 GB, free: 13.67 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1)