Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001731/0.001731, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002024/0.002024, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2332/0.2332, allocations: 46.13 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 83.84 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3221, allocations: 62.43 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003199/0.3254, allocations: 1.55 MB / 0.5321 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.3265, allocations: 0.5632 MB / 0.5327 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.741e-05/0.3266, allocations: 4.688 kB / 0.5327 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.179e-05/0.3267, allocations: 7.922 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.809e-05/0.3268, allocations: 10.22 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002321/0.327, allocations: 48.78 kB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001466/0.3272, allocations: 92.73 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.772e-05/0.3273, allocations: 17.19 kB / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.3274, allocations: 45.55 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.664e-05/0.3275, allocations: 46.91 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.3275, allocations: 6.75 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.685e-05/0.3276, allocations: 8.25 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.028e-05/0.3276, allocations: 20.05 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.614e-05/0.3277, allocations: 41.41 kB / 0.533 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.3278, allocations: 81.36 kB / 0.5331 GB, free: 11.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3279, allocations: 0 / 0.5331 GB, free: 11.44 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3279, allocations: 0 / 0.5331 GB, free: 11.44 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.3279, allocations: 0 / 0.5331 GB, free: 11.44 MB / 398.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.000707/0.3286, allocations: 413.7 kB / 0.5335 GB, free: 11.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3286, allocations: 9.625 kB / 0.5335 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.285e-05/0.3287, allocations: 40.11 kB / 0.5335 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.3288, allocations: 19.88 kB / 0.5335 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.3291, allocations: 188.5 kB / 0.5337 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.3291, allocations: 11.06 kB / 0.5337 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.3292, allocations: 15.19 kB / 0.5337 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002288/0.3294, allocations: 88.8 kB / 0.5338 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3294, allocations: 0 / 0.5338 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.3294, allocations: 5.125 kB / 0.5338 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.3294, allocations: 5.922 kB / 0.5338 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001536/0.3296, allocations: 49.5 kB / 0.5339 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005966/0.3302, allocations: 341.1 kB / 0.5342 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/0.3305, allocations: 93.55 kB / 0.5343 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.3306, allocations: 47.23 kB / 0.5343 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.3306, allocations: 1.125 kB / 0.5343 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002281/0.3309, allocations: 100.6 kB / 0.5344 GB, free: 10.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.3309, allocations: 0 / 0.5344 GB, free: 10.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004835/0.3314, allocations: 197.1 kB / 0.5346 GB, free: 10.03 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.3314, allocations: 58.08 kB / 0.5347 GB, free: 9.961 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.3315, allocations: 117.9 kB / 0.5348 GB, free: 9.852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.3316, allocations: 31.89 kB / 0.5348 GB, free: 9.816 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.799e-05/0.3317, allocations: 98.42 kB / 0.5349 GB, free: 9.715 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.187e-05/0.3317, allocations: 32.8 kB / 0.5349 GB, free: 9.688 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.115e-05/0.3318, allocations: 42.27 kB / 0.535 GB, free: 9.652 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3319, allocations: 326 kB / 0.5353 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.3321, allocations: 36.91 kB / 0.5353 GB, free: 9.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.3322, allocations: 71.73 kB / 0.5354 GB, free: 9.254 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.3324, allocations: 130.4 kB / 0.5355 GB, free: 9.164 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3325, allocations: 224 / 0.5355 GB, free: 9.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000315/0.3328, allocations: 155.9 kB / 0.5357 GB, free: 9.078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.3328, allocations: 13.44 kB / 0.5357 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3328, allocations: 1.375 kB / 0.5357 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.3328, allocations: 2.75 kB / 0.5357 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.333, allocations: 26.98 kB / 0.5357 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.333, allocations: 2.75 kB / 0.5357 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.305e-05/0.3331, allocations: 16.06 kB / 0.5357 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.3331, allocations: 5.5 kB / 0.5357 GB, free: 9.047 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,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,$PRE.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.0001268/0.3332, allocations: 136.2 kB / 0.5359 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.3332, allocations: 12.08 kB / 0.5359 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.239e-05/0.3333, allocations: 15.23 kB / 0.5359 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3333, allocations: 5.312 kB / 0.5359 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3333, allocations: 0 / 0.5359 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3333, allocations: 4 kB / 0.5359 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006203/0.3339, allocations: 444.1 kB / 0.5363 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.334, allocations: 5.312 kB / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.008e-05/0.334, allocations: 9.438 kB / 0.5363 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.334, allocations: 5.094 kB / 0.5363 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.334, allocations: 4.984 kB / 0.5363 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3341, allocations: 1.031 kB / 0.5363 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3341, allocations: 1.031 kB / 0.5364 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000374/0.3344, allocations: 258.6 kB / 0.5366 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.996e-05/0.3345, allocations: 88.25 kB / 0.5367 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.3345, allocations: 5.203 kB / 0.5367 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.3347, allocations: 18.23 kB / 0.5367 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.376e-05/0.3347, allocations: 7.547 kB / 0.5367 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.3347, allocations: 3.781 kB / 0.5367 GB, free: 8.164 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.805e-05/0.3348, allocations: 92.61 kB / 0.5368 GB, free: 8.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3348, allocations: 0 / 0.5368 GB, free: 8.082 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002474/0.3351, allocations: 22.31 kB / 0.5368 GB, free: 8.078 MB / 398.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.0007075/0.3358, allocations: 0.7946 MB / 0.5376 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002861/0.3361, allocations: 118.5 kB / 0.5377 GB, free: 7.305 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3361, allocations: 3.938 kB / 0.5377 GB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.3362, allocations: 52.16 kB / 0.5378 GB, free: 7.281 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.3365, allocations: 20.2 kB / 0.5378 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.3385, allocations: 1.654 MB / 0.5394 GB, free: 5.781 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.3388, allocations: 0.6929 MB / 0.5401 GB, free: 5.078 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.525e-05/0.3389, allocations: 10.78 kB / 0.5401 GB, free: 5.074 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.14e-05/0.3389, allocations: 30.05 kB / 0.5401 GB, free: 5.051 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3389, allocations: 0 / 0.5401 GB, free: 5.051 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03938/0.3783, allocations: 2.245 MB / 0.5423 GB, free: 3.855 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.212/8.591, allocations: 6 kB / 0.5423 GB, free: 3.852 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1)