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.001526/0.001526, allocations: 122.2 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.001321/0.001321, allocations: 202 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.465/1.465, 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.2604/0.2604, allocations: 46.12 MB / 344.4 MB, free: 11.44 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.003917/0.003918, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5995/0.6034, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.004782/0.6083, allocations: 1.718 MB / 0.5323 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005934/0.6089, allocations: 157.2 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.307e-05/0.609, allocations: 2.094 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.626e-05/0.6091, allocations: 15.86 kB / 0.5324 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.526e-05/0.6092, allocations: 10.06 kB / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005346/0.6097, allocations: 105.6 kB / 0.5325 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002386/0.61, allocations: 107.1 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.6102, allocations: 38.42 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.233e-05/0.6103, allocations: 34.23 kB / 0.5327 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.818e-05/0.6104, allocations: 46.39 kB / 0.5328 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.189e-05/0.6104, allocations: 11.59 kB / 0.5328 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.549e-05/0.6105, allocations: 8.031 kB / 0.5328 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.266e-05/0.6105, allocations: 22.67 kB / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.359e-05/0.6106, allocations: 40.03 kB / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.6108, allocations: 99.84 kB / 0.5329 GB, free: 11.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.6108, allocations: 0 / 0.5329 GB, free: 11.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.6109, allocations: 0 / 0.5329 GB, free: 11.53 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.6109, allocations: 1.375 kB / 0.5329 GB, free: 11.53 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.0009991/0.6119, allocations: 447.2 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.6119, allocations: 9.625 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.293e-05/0.612, allocations: 37.44 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.425e-05/0.6121, allocations: 14.16 kB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/0.6125, allocations: 207.9 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.6125, allocations: 3.438 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.6125, allocations: 9.469 kB / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004947/0.613, allocations: 145.8 kB / 0.5338 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.6131, allocations: 7.875 kB / 0.5338 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.6131, allocations: 5.188 kB / 0.5338 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.6131, allocations: 2.844 kB / 0.5338 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005958/0.6137, allocations: 112.2 kB / 0.5339 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.6148, allocations: 0.5431 MB / 0.5344 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005065/0.6153, allocations: 134.3 kB / 0.5346 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.6155, allocations: 62.03 kB / 0.5346 GB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.6155, allocations: 1.938 kB / 0.5346 GB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/0.6156, allocations: 38.55 kB / 0.5347 GB, free: 9.945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.6156, allocations: 2 kB / 0.5347 GB, free: 9.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007058/0.6163, allocations: 184.3 kB / 0.5348 GB, free: 9.848 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.556e-05/0.6164, allocations: 104.2 kB / 0.5349 GB, free: 9.723 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.6166, allocations: 137.4 kB / 0.5351 GB, free: 9.598 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.6166, allocations: 33.69 kB / 0.5351 GB, free: 9.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.658e-05/0.6167, allocations: 105.6 kB / 0.5352 GB, free: 9.457 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.513e-05/0.6167, allocations: 22.59 kB / 0.5352 GB, free: 9.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.945e-05/0.6168, allocations: 31.33 kB / 0.5352 GB, free: 9.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.617, allocations: 321.6 kB / 0.5356 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.6172, allocations: 51.39 kB / 0.5356 GB, free: 9.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002349/0.6174, allocations: 90.56 kB / 0.5357 GB, free: 8.996 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003885/0.6178, allocations: 116 kB / 0.5358 GB, free: 8.926 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.6178, allocations: 8.031 kB / 0.5358 GB, free: 8.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004543/0.6183, allocations: 157.3 kB / 0.536 GB, free: 8.828 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.6183, allocations: 5.5 kB / 0.536 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.6183, allocations: 1.375 kB / 0.536 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.6184, allocations: 1.375 kB / 0.536 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.6185, allocations: 28.53 kB / 0.536 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.6186, allocations: 1.375 kB / 0.536 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/0.6187, allocations: 40.3 kB / 0.536 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.6187, allocations: 2.75 kB / 0.536 GB, free: 8.793 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.0001317/0.6189, allocations: 123.2 kB / 0.5361 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.6189, allocations: 13.44 kB / 0.5362 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.265e-05/0.619, allocations: 18.09 kB / 0.5362 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.619, allocations: 1.375 kB / 0.5362 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.619, allocations: 1.375 kB / 0.5362 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.619, allocations: 3.938 kB / 0.5362 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.6193, allocations: 199.5 kB / 0.5364 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.6193, allocations: 0 / 0.5364 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.6194, allocations: 22.09 kB / 0.5364 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.6195, allocations: 5.047 kB / 0.5364 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.6195, allocations: 5.125 kB / 0.5364 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.6195, allocations: 0 / 0.5364 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.6195, allocations: 5.031 kB / 0.5364 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005041/0.62, allocations: 237.3 kB / 0.5366 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.415e-05/0.6201, allocations: 87.72 kB / 0.5367 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.6201, allocations: 1.594 kB / 0.5367 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.6203, allocations: 29.5 kB / 0.5368 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.736e-05/0.6204, allocations: 15.81 kB / 0.5368 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.395e-06/0.6204, allocations: 2.438 kB / 0.5368 GB, free: 8.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.489e-05/0.6205, allocations: 107.7 kB / 0.5369 GB, free: 7.992 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6205, allocations: 0 / 0.5369 GB, free: 7.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002663/0.6208, allocations: 22.62 kB / 0.5369 GB, free: 7.984 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.0008706/0.6216, allocations: 0.7675 MB / 0.5376 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004912/0.6221, allocations: 116.6 kB / 0.5378 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.6222, allocations: 1.125 kB / 0.5378 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002152/0.6224, allocations: 67.56 kB / 0.5378 GB, free: 7.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004067/0.6228, allocations: 31.17 kB / 0.5378 GB, free: 7.172 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003039/0.6258, allocations: 1.662 MB / 0.5395 GB, free: 5.719 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005062/0.6264, allocations: 0.6985 MB / 0.5402 GB, free: 5.012 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.307e-05/0.6265, allocations: 11.56 kB / 0.5402 GB, free: 5.008 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.907e-05/0.6265, allocations: 34.17 kB / 0.5402 GB, free: 4.98 MB / 398.1 MB Notification: Performance of SimCode: time 1.312e-06/0.6266, allocations: 0 / 0.5402 GB, free: 4.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.6613, allocations: 2.747 MB / 0.5429 GB, free: 3.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.115/8.777, allocations: 4.797 kB / 0.5429 GB, free: 3.535 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)