Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 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.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001443/0.001443, allocations: 118.8 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001364, allocations: 202 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 227.4 MB / 247 MB, free: 10.38 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.2309/0.2309, allocations: 46.12 MB / 344.4 MB, free: 11.4 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.003117/0.003117, allocations: 79.88 kB / 480.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3795, allocations: 62.45 MB / 0.5306 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002944/0.3825, allocations: 1.721 MB / 0.5323 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004179/0.3829, allocations: 157.8 kB / 0.5324 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.909e-05/0.383, allocations: 1.719 kB / 0.5324 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.608e-05/0.383, allocations: 11.86 kB / 0.5324 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.925e-05/0.3831, allocations: 13 kB / 0.5325 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003254/0.3834, allocations: 95.52 kB / 0.5326 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001593/0.3836, allocations: 109.2 kB / 0.5327 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.3837, allocations: 29.75 kB / 0.5327 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.408e-05/0.3838, allocations: 42.97 kB / 0.5327 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.339e-05/0.3839, allocations: 41.41 kB / 0.5328 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.395e-05/0.3839, allocations: 8.25 kB / 0.5328 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.75e-05/0.3839, allocations: 8.25 kB / 0.5328 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.144e-05/0.384, allocations: 20.05 kB / 0.5328 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.527e-05/0.384, allocations: 52.02 kB / 0.5328 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.3842, allocations: 91.94 kB / 0.5329 GB, free: 11.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3842, allocations: 0 / 0.5329 GB, free: 11.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.3842, allocations: 3.984 kB / 0.5329 GB, free: 11.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.3842, allocations: 1.656 kB / 0.5329 GB, free: 11.71 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.0007159/0.385, allocations: 447.4 kB / 0.5334 GB, free: 11.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.385, allocations: 9.156 kB / 0.5334 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.492e-05/0.385, allocations: 41.23 kB / 0.5334 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.571e-05/0.3851, allocations: 14.59 kB / 0.5334 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.3853, allocations: 197.4 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.3854, allocations: 7.125 kB / 0.5336 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.3854, allocations: 5.781 kB / 0.5336 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003643/0.3857, allocations: 155.1 kB / 0.5338 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3858, allocations: 9.188 kB / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.3858, allocations: 1.281 kB / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.3858, allocations: 1.438 kB / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003784/0.3862, allocations: 113.4 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007097/0.3869, allocations: 0.5477 MB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004375/0.3873, allocations: 137.1 kB / 0.5346 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001927/0.3876, allocations: 58.47 kB / 0.5346 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.3876, allocations: 5.25 kB / 0.5346 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.3876, allocations: 35.62 kB / 0.5347 GB, free: 10.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.3876, allocations: 1.156 kB / 0.5347 GB, free: 10.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006551/0.3883, allocations: 192.6 kB / 0.5348 GB, free: 10.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.3884, allocations: 104.2 kB / 0.5349 GB, free: 9.895 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.3885, allocations: 137.5 kB / 0.5351 GB, free: 9.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.3885, allocations: 27.08 kB / 0.5351 GB, free: 9.738 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.1e-05/0.3886, allocations: 113.6 kB / 0.5352 GB, free: 9.629 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.889e-05/0.3886, allocations: 18.59 kB / 0.5352 GB, free: 9.613 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.389e-05/0.3887, allocations: 27.34 kB / 0.5353 GB, free: 9.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3888, allocations: 324.2 kB / 0.5356 GB, free: 9.266 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.389, allocations: 48.83 kB / 0.5356 GB, free: 9.246 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.3893, allocations: 93.11 kB / 0.5357 GB, free: 9.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/0.3896, allocations: 108.1 kB / 0.5358 GB, free: 9.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3896, allocations: 1.375 kB / 0.5358 GB, free: 9.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004232/0.39, allocations: 159.8 kB / 0.536 GB, free: 9.016 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.3901, allocations: 5.531 kB / 0.536 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3901, allocations: 1.094 kB / 0.536 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.3901, allocations: 5 kB / 0.536 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.3902, allocations: 25.16 kB / 0.536 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.3903, allocations: 2.125 kB / 0.536 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.3904, allocations: 39.89 kB / 0.536 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.3904, allocations: 2.469 kB / 0.536 GB, free: 8.98 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.0001076/0.3906, allocations: 123 kB / 0.5361 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.299e-05/0.3906, allocations: 8.797 kB / 0.5362 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.966e-05/0.3906, allocations: 15.23 kB / 0.5362 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3906, allocations: 1.344 kB / 0.5362 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3907, allocations: 1.312 kB / 0.5362 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3907, allocations: 8.125 kB / 0.5362 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.3909, allocations: 203.4 kB / 0.5364 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3909, allocations: 3.938 kB / 0.5364 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.3911, allocations: 27.25 kB / 0.5364 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3911, allocations: 0 / 0.5364 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.3911, allocations: 1.125 kB / 0.5364 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.3911, allocations: 400 / 0.5364 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3911, allocations: 1.469 kB / 0.5364 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004795/0.3916, allocations: 252.9 kB / 0.5366 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.3916, allocations: 83.56 kB / 0.5367 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.3917, allocations: 1.125 kB / 0.5367 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/0.3918, allocations: 27.12 kB / 0.5368 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.3919, allocations: 15.17 kB / 0.5368 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-06/0.3919, allocations: 6.344 kB / 0.5368 GB, free: 8.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.271e-05/0.392, allocations: 106.6 kB / 0.5369 GB, free: 8.172 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.392, allocations: 1.25 kB / 0.5369 GB, free: 8.172 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002422/0.3922, allocations: 18.41 kB / 0.5369 GB, free: 8.168 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.000799/0.393, allocations: 0.7681 MB / 0.5376 GB, free: 7.453 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004547/0.3935, allocations: 120.4 kB / 0.5378 GB, free: 7.402 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.3935, allocations: 0 / 0.5378 GB, free: 7.402 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.3937, allocations: 67.53 kB / 0.5378 GB, free: 7.371 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.3941, allocations: 23.47 kB / 0.5378 GB, free: 7.359 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002499/0.3966, allocations: 1.67 MB / 0.5395 GB, free: 5.898 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.397, allocations: 0.6936 MB / 0.5402 GB, free: 5.195 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.138e-05/0.397, allocations: 12.12 kB / 0.5402 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.411e-05/0.3971, allocations: 32.95 kB / 0.5402 GB, free: 5.164 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3971, allocations: 0 / 0.5402 GB, free: 5.164 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.4219, allocations: 2.739 MB / 0.5429 GB, free: 3.727 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.031/8.453, allocations: 8.297 kB / 0.5429 GB, free: 3.723 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)