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.001795/0.001796, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00305/0.00305, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, 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.2309/0.2309, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 75.89 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3809, allocations: 62.43 MB / 0.5305 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.004167/0.3851, allocations: 1.724 MB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005509/0.3856, allocations: 153.6 kB / 0.5323 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.3858, allocations: 1.281 kB / 0.5323 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.26e-05/0.3859, allocations: 9.031 kB / 0.5323 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.475e-05/0.386, allocations: 20.94 kB / 0.5324 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004724/0.3865, allocations: 91 kB / 0.5324 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002388/0.3867, allocations: 106.3 kB / 0.5325 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.3869, allocations: 36.86 kB / 0.5326 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.387, allocations: 44.28 kB / 0.5326 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.945e-05/0.3871, allocations: 41.34 kB / 0.5327 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.303e-05/0.3871, allocations: 8.188 kB / 0.5327 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.058e-05/0.3872, allocations: 11.62 kB / 0.5327 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.124e-05/0.3872, allocations: 20.42 kB / 0.5327 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.486e-05/0.3873, allocations: 43.72 kB / 0.5327 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.3874, allocations: 93.38 kB / 0.5328 GB, free: 11.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3875, allocations: 5.156 kB / 0.5328 GB, free: 11.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3875, allocations: 0 / 0.5328 GB, free: 11.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.3875, allocations: 0 / 0.5328 GB, free: 11.43 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.0008591/0.3883, allocations: 443.9 kB / 0.5333 GB, free: 11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.3884, allocations: 9.5 kB / 0.5333 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.219e-05/0.3885, allocations: 42.36 kB / 0.5333 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.083e-05/0.3885, allocations: 18.12 kB / 0.5333 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002973/0.3888, allocations: 196.9 kB / 0.5335 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.3888, allocations: 7.969 kB / 0.5335 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.791e-05/0.3889, allocations: 3.938 kB / 0.5335 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003576/0.3892, allocations: 158.3 kB / 0.5337 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.3893, allocations: 3.938 kB / 0.5337 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.3893, allocations: 1.25 kB / 0.5337 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.3893, allocations: 6.453 kB / 0.5337 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003708/0.3897, allocations: 109.4 kB / 0.5338 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007142/0.3904, allocations: 0.5391 MB / 0.5343 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004252/0.3908, allocations: 137.9 kB / 0.5345 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.391, allocations: 57.69 kB / 0.5345 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.3911, allocations: 1.375 kB / 0.5345 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.3911, allocations: 35.94 kB / 0.5345 GB, free: 9.855 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.3911, allocations: 1.375 kB / 0.5345 GB, free: 9.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007087/0.3918, allocations: 188.3 kB / 0.5347 GB, free: 9.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.137e-05/0.3919, allocations: 112.1 kB / 0.5348 GB, free: 9.621 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.392, allocations: 139.7 kB / 0.535 GB, free: 9.496 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.3921, allocations: 27.08 kB / 0.535 GB, free: 9.465 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.803e-05/0.3922, allocations: 109.6 kB / 0.5351 GB, free: 9.359 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.3922, allocations: 18.41 kB / 0.5351 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.077e-05/0.3923, allocations: 31.33 kB / 0.5351 GB, free: 9.316 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3924, allocations: 320.2 kB / 0.5354 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.3926, allocations: 52.83 kB / 0.5355 GB, free: 8.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.3928, allocations: 89.95 kB / 0.5356 GB, free: 8.902 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003447/0.3931, allocations: 112.4 kB / 0.5357 GB, free: 8.836 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3932, allocations: 0 / 0.5357 GB, free: 8.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000429/0.3936, allocations: 161.1 kB / 0.5358 GB, free: 8.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.3936, allocations: 4.562 kB / 0.5358 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3936, allocations: 5.078 kB / 0.5359 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.3937, allocations: 1.125 kB / 0.5359 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.3938, allocations: 21.36 kB / 0.5359 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.3938, allocations: 6.141 kB / 0.5359 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.394, allocations: 31.62 kB / 0.5359 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.394, allocations: 7.375 kB / 0.5359 GB, free: 8.711 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 9.632e-05/0.3941, allocations: 131.6 kB / 0.536 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.644e-05/0.3941, allocations: 12.25 kB / 0.5361 GB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.129e-05/0.3942, allocations: 10.91 kB / 0.5361 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3942, allocations: 1.125 kB / 0.5361 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.3942, allocations: 3.984 kB / 0.5361 GB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.3942, allocations: 9.188 kB / 0.5361 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002062/0.3944, allocations: 203.6 kB / 0.5363 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3944, allocations: 0 / 0.5363 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.3946, allocations: 26.75 kB / 0.5363 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.3946, allocations: 3.984 kB / 0.5363 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.3946, allocations: 1.188 kB / 0.5363 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3946, allocations: 1.125 kB / 0.5363 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3946, allocations: 0 / 0.5363 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004444/0.3951, allocations: 249 kB / 0.5365 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.023e-05/0.3951, allocations: 83.77 kB / 0.5366 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.3951, allocations: 1.125 kB / 0.5366 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.3953, allocations: 22.97 kB / 0.5366 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.565e-05/0.3954, allocations: 14.83 kB / 0.5367 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.3954, allocations: 2.688 kB / 0.5367 GB, free: 7.992 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.628e-05/0.3954, allocations: 112.1 kB / 0.5368 GB, free: 7.898 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3955, allocations: 0 / 0.5368 GB, free: 7.898 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.3957, allocations: 19.34 kB / 0.5368 GB, free: 7.895 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.0007353/0.3965, allocations: 0.7708 MB / 0.5375 GB, free: 7.176 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004273/0.3969, allocations: 112.3 kB / 0.5376 GB, free: 7.133 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.3969, allocations: 1.5 kB / 0.5376 GB, free: 7.133 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.3971, allocations: 67.27 kB / 0.5377 GB, free: 7.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.3974, allocations: 28.41 kB / 0.5377 GB, free: 7.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002354/0.3998, allocations: 1.671 MB / 0.5394 GB, free: 5.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.4001, allocations: 0.6949 MB / 0.54 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.371e-05/0.4001, allocations: 15.95 kB / 0.5401 GB, free: 4.918 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.42e-05/0.4002, allocations: 28.52 kB / 0.5401 GB, free: 4.895 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4002, allocations: 0 / 0.5401 GB, free: 4.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.4215, allocations: 2.791 MB / 0.5428 GB, free: 3.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.517/7.939, allocations: 9 kB / 0.5428 GB, free: 3.402 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)