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.00154/0.00154, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001796/0.001796, allocations: 201.2 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.413/1.413, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2194/0.2194, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 75.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3674, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003161/0.3706, allocations: 1.728 MB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005182/0.3712, allocations: 159.9 kB / 0.5323 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.3713, allocations: 2 kB / 0.5323 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.793e-05/0.3714, allocations: 7.875 kB / 0.5324 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.843e-05/0.3715, allocations: 9.125 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003889/0.3719, allocations: 102.2 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002413/0.3721, allocations: 111.5 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.3723, allocations: 33.31 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.319e-05/0.3724, allocations: 47.58 kB / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.333e-05/0.3724, allocations: 40.53 kB / 0.5327 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.916e-05/0.3725, allocations: 8.969 kB / 0.5327 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.734e-05/0.3725, allocations: 7.625 kB / 0.5327 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.161e-05/0.3725, allocations: 19.2 kB / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.341e-05/0.3726, allocations: 44.72 kB / 0.5328 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.3728, allocations: 94.94 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3728, allocations: 1.406 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3728, allocations: 0 / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.3728, allocations: 4 kB / 0.5329 GB, free: 11.56 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.0008455/0.3737, allocations: 451.8 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.3737, allocations: 9.75 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.321e-05/0.3738, allocations: 37.66 kB / 0.5333 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.894e-05/0.3739, allocations: 14.53 kB / 0.5333 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.3742, allocations: 203.1 kB / 0.5335 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.3743, allocations: 7.031 kB / 0.5335 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.3743, allocations: 6.438 kB / 0.5335 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.3747, allocations: 149.1 kB / 0.5337 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.3747, allocations: 7.938 kB / 0.5337 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.3747, allocations: 1.469 kB / 0.5337 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3747, allocations: 1.812 kB / 0.5337 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003896/0.3751, allocations: 113.1 kB / 0.5338 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007537/0.3759, allocations: 0.5491 MB / 0.5343 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004174/0.3763, allocations: 131.7 kB / 0.5345 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.3765, allocations: 59.06 kB / 0.5345 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.3766, allocations: 1.375 kB / 0.5345 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.3766, allocations: 31.94 kB / 0.5346 GB, free: 9.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.714e-06/0.3766, allocations: 4 kB / 0.5346 GB, free: 9.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007374/0.3774, allocations: 189.6 kB / 0.5347 GB, free: 9.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.929e-05/0.3774, allocations: 108.2 kB / 0.5348 GB, free: 9.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.3776, allocations: 143.7 kB / 0.535 GB, free: 9.621 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.3777, allocations: 25.7 kB / 0.535 GB, free: 9.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.126e-05/0.3777, allocations: 113.6 kB / 0.5351 GB, free: 9.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.3778, allocations: 14.61 kB / 0.5351 GB, free: 9.469 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.32e-05/0.3779, allocations: 31.33 kB / 0.5352 GB, free: 9.441 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.378, allocations: 321.6 kB / 0.5355 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.3782, allocations: 47.45 kB / 0.5355 GB, free: 9.102 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.3784, allocations: 94.55 kB / 0.5356 GB, free: 9.027 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003428/0.3788, allocations: 108.1 kB / 0.5357 GB, free: 8.965 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3788, allocations: 0 / 0.5357 GB, free: 8.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004506/0.3792, allocations: 156.9 kB / 0.5359 GB, free: 8.875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.3793, allocations: 10 kB / 0.5359 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.3793, allocations: 192 / 0.5359 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3793, allocations: 2.438 kB / 0.5359 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.3795, allocations: 33.06 kB / 0.5359 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.3795, allocations: 1.125 kB / 0.5359 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.3797, allocations: 35.86 kB / 0.5359 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.3797, allocations: 6.641 kB / 0.5359 GB, free: 8.832 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.0001136/0.3798, allocations: 124 kB / 0.5361 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.103e-05/0.3798, allocations: 11.88 kB / 0.5361 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.808e-05/0.3799, allocations: 15.28 kB / 0.5361 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.3799, allocations: 0.9375 kB / 0.5361 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/0.3799, allocations: 1.125 kB / 0.5361 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3799, allocations: 3.938 kB / 0.5361 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002727/0.3802, allocations: 207.5 kB / 0.5363 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3802, allocations: 0 / 0.5363 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.3804, allocations: 30.44 kB / 0.5363 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3804, allocations: 1.281 kB / 0.5363 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3804, allocations: 0.9375 kB / 0.5363 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3804, allocations: 0 / 0.5363 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3804, allocations: 5.203 kB / 0.5363 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004761/0.3809, allocations: 241.6 kB / 0.5366 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.235e-05/0.381, allocations: 83.19 kB / 0.5366 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.381, allocations: 5.141 kB / 0.5366 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.3812, allocations: 22.66 kB / 0.5367 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.063e-05/0.3812, allocations: 15.45 kB / 0.5367 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.3812, allocations: 2.25 kB / 0.5367 GB, free: 8.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001342/0.3814, allocations: 103.7 kB / 0.5368 GB, free: 8.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3814, allocations: 5.156 kB / 0.5368 GB, free: 8.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.3817, allocations: 18.22 kB / 0.5368 GB, free: 8.027 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.0008573/0.3826, allocations: 0.7756 MB / 0.5376 GB, free: 7.305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004681/0.383, allocations: 115.2 kB / 0.5377 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.383, allocations: 1.531 kB / 0.5377 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.3832, allocations: 59.86 kB / 0.5377 GB, free: 7.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003443/0.3836, allocations: 27.09 kB / 0.5377 GB, free: 7.219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.3862, allocations: 1.669 MB / 0.5394 GB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.3865, allocations: 0.7027 MB / 0.5401 GB, free: 5.047 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.28e-05/0.3866, allocations: 12.45 kB / 0.5401 GB, free: 5.043 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.21e-05/0.3866, allocations: 24.41 kB / 0.5401 GB, free: 5.023 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3867, allocations: 1.031 kB / 0.5401 GB, free: 5.023 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.4082, allocations: 2.752 MB / 0.5428 GB, free: 3.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.959/8.367, allocations: 1.906 kB / 0.5428 GB, free: 3.559 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)