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.008113/0.008114, allocations: 101.7 kB / 15.73 MB, free: 6.047 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.001668/0.001668, allocations: 193.9 kB / 16.67 MB, free: 5.977 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.51/1.51, allocations: 205.1 MB / 222.6 MB, free: 4.539 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.3204/0.3204, allocations: 39.93 MB / 309.8 MB, free: 9.227 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.001385/0.001385, allocations: 71.91 kB / 435.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3332, allocations: 56.86 MB / 492.6 MB, free: 19.42 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002615/0.3359, allocations: 1.523 MB / 494.2 MB, free: 18.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008633/0.3368, allocations: 0.5404 MB / 494.7 MB, free: 17.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.125e-05/0.3369, allocations: 0 / 494.7 MB, free: 17.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.587e-05/0.3369, allocations: 6.875 kB / 494.7 MB, free: 17.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.234e-05/0.337, allocations: 10.25 kB / 494.7 MB, free: 17.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002006/0.3372, allocations: 39.16 kB / 494.7 MB, free: 17.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.3373, allocations: 86.7 kB / 494.8 MB, free: 17.9 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.3375, allocations: 16.59 kB / 494.9 MB, free: 17.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.3376, allocations: 48.7 kB / 494.9 MB, free: 17.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.973e-05/0.3377, allocations: 37.03 kB / 494.9 MB, free: 17.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/0.3377, allocations: 6.594 kB / 494.9 MB, free: 17.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.152e-05/0.3377, allocations: 7.625 kB / 494.9 MB, free: 17.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.685e-05/0.3378, allocations: 23.92 kB / 495 MB, free: 17.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.276e-05/0.3379, allocations: 36.53 kB / 495 MB, free: 17.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001443/0.338, allocations: 72.92 kB / 495.1 MB, free: 17.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.338, allocations: 1.375 kB / 495.1 MB, free: 17.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.338, allocations: 0 / 495.1 MB, free: 17.78 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.473e-06/0.338, allocations: 0 / 495.1 MB, free: 17.78 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.0006407/0.3387, allocations: 407.1 kB / 495.5 MB, free: 17.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.3387, allocations: 13.06 kB / 495.5 MB, free: 17.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.471e-05/0.3388, allocations: 10.47 kB / 495.5 MB, free: 17.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.728e-05/0.3389, allocations: 177.5 kB / 495.7 MB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.3389, allocations: 9.453 kB / 495.7 MB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.209e-05/0.3389, allocations: 10.58 kB / 495.7 MB, free: 17.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.3391, allocations: 89.69 kB / 495.8 MB, free: 17.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.3392, allocations: 1.281 kB / 495.8 MB, free: 17.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.3392, allocations: 0.6562 kB / 495.8 MB, free: 17.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.3392, allocations: 3.156 kB / 495.8 MB, free: 17.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.3393, allocations: 47.03 kB / 495.8 MB, free: 17.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004859/0.3398, allocations: 325.4 kB / 496.1 MB, free: 16.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.34, allocations: 91.83 kB / 496.2 MB, free: 16.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.118e-05/0.3401, allocations: 48.52 kB / 496.3 MB, free: 16.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.3402, allocations: 1.344 kB / 496.3 MB, free: 16.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001944/0.3404, allocations: 101.1 kB / 496.4 MB, free: 16.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.3404, allocations: 0 / 496.4 MB, free: 16.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004605/0.3408, allocations: 191.9 kB / 496.6 MB, free: 16.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.3409, allocations: 56.56 kB / 496.6 MB, free: 16.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.415e-05/0.341, allocations: 123 kB / 496.7 MB, free: 16.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.341, allocations: 33.64 kB / 496.8 MB, free: 16.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.532e-05/0.341, allocations: 89 kB / 496.9 MB, free: 16.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.853e-05/0.3411, allocations: 39.77 kB / 496.9 MB, free: 16.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.435e-05/0.3412, allocations: 38.17 kB / 496.9 MB, free: 16.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.38e-05/0.3412, allocations: 320.9 kB / 497.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.51e-05/0.3413, allocations: 40.64 kB / 497.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.812e-05/0.3414, allocations: 73.61 kB / 497.4 MB, free: 15.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.3416, allocations: 126.3 kB / 497.5 MB, free: 15.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3416, allocations: 1.188 kB / 497.5 MB, free: 15.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002612/0.3419, allocations: 157.6 kB / 497.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.3419, allocations: 12.42 kB / 497.7 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3419, allocations: 1.438 kB / 497.7 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.3419, allocations: 5.469 kB / 497.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.3421, allocations: 23.11 kB / 497.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.3421, allocations: 3.078 kB / 497.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.475e-05/0.3421, allocations: 17.25 kB / 497.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.3422, allocations: 5.438 kB / 497.7 MB, free: 15.64 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 8.865e-05/0.3423, allocations: 133.1 kB / 497.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.3423, allocations: 13.34 kB / 497.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.861e-05/0.3423, allocations: 11 kB / 497.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3423, allocations: 6.156 kB / 497.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.3423, allocations: 1.594 kB / 497.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3423, allocations: 4.781 kB / 497.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004705/0.3428, allocations: 444.6 kB / 498.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3428, allocations: 0 / 498.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.317e-05/0.3429, allocations: 7.906 kB / 498.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.3429, allocations: 2.078 kB / 498.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.3429, allocations: 3.25 kB / 498.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3429, allocations: 0 / 498.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3429, allocations: 5.438 kB / 498.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/0.3432, allocations: 247.1 kB / 498.6 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.653e-05/0.3433, allocations: 89.02 kB / 498.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.3433, allocations: 9.938 kB / 498.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3434, allocations: 8.078 kB / 498.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/0.3434, allocations: 12.12 kB / 498.7 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.3435, allocations: 13.41 kB / 498.7 MB, free: 14.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.498e-05/0.3435, allocations: 90.56 kB / 498.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3435, allocations: 0 / 498.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002507/0.3438, allocations: 21.34 kB / 498.8 MB, free: 14.74 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 9.56e-05/0.3439, allocations: 99.84 kB / 498.9 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002589/0.3441, allocations: 111.8 kB / 499 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3442, allocations: 1.25 kB / 499 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.3443, allocations: 53.42 kB / 499.1 MB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.3446, allocations: 19.38 kB / 499.1 MB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004217/0.345, allocations: 197.8 kB / 499.3 MB, free: 14.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001281/0.3451, allocations: 0.6913 MB / 500 MB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.595e-05/0.3452, allocations: 11.03 kB / 500 MB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.673e-05/0.3452, allocations: 18.22 kB / 0.4883 GB, free: 13.73 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3452, allocations: 0 / 0.4883 GB, free: 13.73 MB / 382.1 MB Notification: Performance of Templates: time 0.003754/0.349, allocations: 1.013 MB / 0.4893 GB, free: 13.62 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)