Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 117.6 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001069, allocations: 203.9 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2089/0.2089, allocations: 46.09 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.00137, allocations: 79.86 kB / 480.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3388, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002968/0.3418, allocations: 1.723 MB / 0.5322 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003777/0.3422, allocations: 156.8 kB / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.805e-05/0.3422, allocations: 2.219 kB / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.375e-05/0.3423, allocations: 7.875 kB / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.071e-05/0.3424, allocations: 10.25 kB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.3427, allocations: 103 kB / 0.5325 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.3429, allocations: 105.3 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.343, allocations: 30.97 kB / 0.5326 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.229e-05/0.3431, allocations: 42.41 kB / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.277e-05/0.3431, allocations: 49.77 kB / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.3432, allocations: 7.719 kB / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.684e-05/0.3432, allocations: 8.781 kB / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.027e-05/0.3432, allocations: 23.55 kB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.845e-05/0.3433, allocations: 36.27 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.3434, allocations: 101.1 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3434, allocations: 1.312 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3434, allocations: 0 / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.3435, allocations: 0 / 0.5328 GB, free: 11.55 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006688/0.3441, allocations: 449 kB / 0.5333 GB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.3442, allocations: 9.031 kB / 0.5333 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.472e-05/0.3442, allocations: 36.75 kB / 0.5333 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.752e-05/0.3443, allocations: 15.84 kB / 0.5333 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.3445, allocations: 200.8 kB / 0.5335 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.3446, allocations: 14.16 kB / 0.5335 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.3446, allocations: 5.75 kB / 0.5335 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003622/0.3449, allocations: 151 kB / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.345, allocations: 5.531 kB / 0.5337 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.345, allocations: 7.031 kB / 0.5337 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.345, allocations: 4 kB / 0.5337 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003461/0.3454, allocations: 108.7 kB / 0.5338 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007212/0.3461, allocations: 0.5404 MB / 0.5343 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003886/0.3465, allocations: 140.6 kB / 0.5345 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.3467, allocations: 55.06 kB / 0.5345 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.3467, allocations: 9.297 kB / 0.5345 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.3467, allocations: 31.94 kB / 0.5346 GB, free: 9.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.3467, allocations: 0 / 0.5346 GB, free: 9.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005959/0.3473, allocations: 188.3 kB / 0.5347 GB, free: 9.859 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.519e-05/0.3474, allocations: 105.6 kB / 0.5348 GB, free: 9.734 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.3476, allocations: 143.7 kB / 0.535 GB, free: 9.605 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.3476, allocations: 25.7 kB / 0.535 GB, free: 9.574 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.569e-05/0.3477, allocations: 113.6 kB / 0.5351 GB, free: 9.465 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.836e-05/0.3477, allocations: 18.41 kB / 0.5351 GB, free: 9.449 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-05/0.3478, allocations: 31.33 kB / 0.5352 GB, free: 9.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3479, allocations: 321.6 kB / 0.5355 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.348, allocations: 51.39 kB / 0.5355 GB, free: 9.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.3482, allocations: 94.08 kB / 0.5356 GB, free: 9.004 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.3485, allocations: 107.8 kB / 0.5357 GB, free: 8.941 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3486, allocations: 1.156 kB / 0.5357 GB, free: 8.941 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003737/0.3489, allocations: 151.8 kB / 0.5358 GB, free: 8.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.349, allocations: 5.562 kB / 0.5359 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.349, allocations: 1.219 kB / 0.5359 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.349, allocations: 5.062 kB / 0.5359 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.3491, allocations: 25.25 kB / 0.5359 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3492, allocations: 1.188 kB / 0.5359 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.3493, allocations: 32.62 kB / 0.5359 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.3493, allocations: 2.25 kB / 0.5359 GB, free: 8.828 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001181/0.3494, allocations: 131.6 kB / 0.536 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.797e-05/0.3495, allocations: 17.31 kB / 0.5361 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.876e-05/0.3495, allocations: 15.09 kB / 0.5361 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3495, allocations: 4.984 kB / 0.5361 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3495, allocations: 0 / 0.5361 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3495, allocations: 3.938 kB / 0.5361 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.3498, allocations: 207.7 kB / 0.5363 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3498, allocations: 1.219 kB / 0.5363 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.3499, allocations: 21.53 kB / 0.5363 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3499, allocations: 1.125 kB / 0.5363 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.3499, allocations: 5.094 kB / 0.5363 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3499, allocations: 0 / 0.5363 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3499, allocations: 1.125 kB / 0.5363 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004214/0.3504, allocations: 237.6 kB / 0.5365 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.693e-05/0.3504, allocations: 90.92 kB / 0.5366 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.3504, allocations: 1.094 kB / 0.5366 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.3506, allocations: 30.36 kB / 0.5366 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.414e-05/0.3507, allocations: 12.12 kB / 0.5367 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.3507, allocations: 1.219 kB / 0.5367 GB, free: 8.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.763e-05/0.3508, allocations: 113.1 kB / 0.5368 GB, free: 8.012 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3508, allocations: 0 / 0.5368 GB, free: 8.012 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000238/0.351, allocations: 23.72 kB / 0.5368 GB, free: 8.004 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: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0007409/0.3518, allocations: 0.7673 MB / 0.5375 GB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003939/0.3522, allocations: 120.6 kB / 0.5377 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.3522, allocations: 0 / 0.5377 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001759/0.3524, allocations: 67.22 kB / 0.5377 GB, free: 7.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.3527, allocations: 23.94 kB / 0.5377 GB, free: 7.195 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002315/0.355, allocations: 1.667 MB / 0.5394 GB, free: 5.738 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.3554, allocations: 0.7017 MB / 0.5401 GB, free: 5.027 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.292e-05/0.3555, allocations: 8.016 kB / 0.5401 GB, free: 5.027 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.258e-05/0.3555, allocations: 29.05 kB / 0.5401 GB, free: 5.004 MB / 398.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3555, allocations: 0 / 0.5401 GB, free: 5.004 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.3731, allocations: 2.751 MB / 0.5428 GB, free: 3.539 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.172/7.545, allocations: 1.938 kB / 0.5428 GB, free: 3.539 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)