Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.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.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001588/0.001588, allocations: 118.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.001499/0.001498, allocations: 198 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.471/1.471, allocations: 227.4 MB / 247 MB, free: 10.44 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.2339/0.2339, allocations: 46.12 MB / 344.4 MB, free: 11.46 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.002312/0.002313, allocations: 79.88 kB / 480.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3962/0.3986, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002786/0.4014, allocations: 1.458 MB / 0.532 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008904/0.4023, allocations: 485.6 kB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.482e-05/0.4024, allocations: 3.094 kB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.639e-05/0.4024, allocations: 7.938 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.531e-05/0.4025, allocations: 7.922 kB / 0.5325 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.4027, allocations: 29.84 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.4028, allocations: 37.53 kB / 0.5326 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.956e-05/0.4029, allocations: 7.281 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.4031, allocations: 24.64 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.033e-05/0.4031, allocations: 18.28 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.394e-05/0.4031, allocations: 3.969 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.004e-05/0.4032, allocations: 5.781 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.49e-05/0.4032, allocations: 11.94 kB / 0.5326 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.024e-05/0.4032, allocations: 15.86 kB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.4034, allocations: 33.94 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.4034, allocations: 0 / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4034, allocations: 3.594 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.4034, allocations: 0 / 0.5327 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005006/0.4039, allocations: 355.7 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.404, allocations: 7.531 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.674e-05/0.404, allocations: 38.19 kB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.4042, allocations: 7.906 kB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.4044, allocations: 179 kB / 0.5332 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.4044, allocations: 9.672 kB / 0.5333 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.4045, allocations: 1.75 kB / 0.5333 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.4047, allocations: 57.16 kB / 0.5333 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.4047, allocations: 0 / 0.5333 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.4047, allocations: 5.375 kB / 0.5333 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.4047, allocations: 4 kB / 0.5333 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.323e-05/0.4048, allocations: 24.34 kB / 0.5333 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003929/0.4052, allocations: 266.5 kB / 0.5336 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.564e-05/0.4053, allocations: 32.19 kB / 0.5336 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.982e-05/0.4054, allocations: 14.36 kB / 0.5336 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.4054, allocations: 5.375 kB / 0.5336 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.4055, allocations: 34.55 kB / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.593e-06/0.4055, allocations: 1.375 kB / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002499/0.4057, allocations: 62.25 kB / 0.5337 GB, free: 10.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.4058, allocations: 82.47 kB / 0.5338 GB, free: 10.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.957e-05/0.4059, allocations: 112.8 kB / 0.5339 GB, free: 10.35 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.4059, allocations: 33.83 kB / 0.534 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.494e-05/0.406, allocations: 82.8 kB / 0.534 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.83e-05/0.406, allocations: 7.953 kB / 0.534 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.73e-05/0.4061, allocations: 13.72 kB / 0.5341 GB, free: 10.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.4062, allocations: 324.1 kB / 0.5344 GB, free: 9.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.842e-05/0.4063, allocations: 7.969 kB / 0.5344 GB, free: 9.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.296e-05/0.4064, allocations: 25.83 kB / 0.5344 GB, free: 9.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.987e-05/0.4065, allocations: 36.55 kB / 0.5344 GB, free: 9.832 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4065, allocations: 0 / 0.5344 GB, free: 9.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001377/0.4066, allocations: 63.95 kB / 0.5345 GB, free: 9.781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.4066, allocations: 8.5 kB / 0.5345 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.4066, allocations: 0 / 0.5345 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.4067, allocations: 0.7812 kB / 0.5345 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.527e-05/0.4067, allocations: 3.062 kB / 0.5345 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.4067, allocations: 0 / 0.5345 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.23e-05/0.4068, allocations: 18.41 kB / 0.5345 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-06/0.4068, allocations: 0 / 0.5345 GB, free: 9.77 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.356e-05/0.4069, allocations: 121.7 kB / 0.5346 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.577e-05/0.407, allocations: 1.312 kB / 0.5346 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.264e-05/0.407, allocations: 12.58 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.407, allocations: 1.188 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.407, allocations: 0 / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.407, allocations: 1.688 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001773/0.4072, allocations: 166.4 kB / 0.5348 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4072, allocations: 4.812 kB / 0.5348 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.517e-05/0.4072, allocations: 2.594 kB / 0.5348 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.4072, allocations: 0.5312 kB / 0.5348 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.4073, allocations: 1.156 kB / 0.5348 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.4073, allocations: 3.938 kB / 0.5348 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.4073, allocations: 5.297 kB / 0.5348 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001802/0.4075, allocations: 148.3 kB / 0.535 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.717e-05/0.4075, allocations: 86.73 kB / 0.5351 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.4075, allocations: 0.9375 kB / 0.5351 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.385e-05/0.4076, allocations: 9.297 kB / 0.5351 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.103e-05/0.4077, allocations: 7.891 kB / 0.5351 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.4077, allocations: 3.938 kB / 0.5351 GB, free: 9.156 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.368e-05/0.4078, allocations: 89.95 kB / 0.5352 GB, free: 9.074 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4078, allocations: 1.438 kB / 0.5352 GB, free: 9.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000214/0.408, allocations: 5.562 kB / 0.5352 GB, free: 9.074 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: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.000504/0.4085, allocations: 0.6867 MB / 0.5358 GB, free: 8.391 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001561/0.4087, allocations: 28.61 kB / 0.5359 GB, free: 8.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4087, allocations: 1.125 kB / 0.5359 GB, free: 8.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.408e-05/0.4087, allocations: 19.67 kB / 0.5359 GB, free: 8.367 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.409, allocations: 9.625 kB / 0.5359 GB, free: 8.363 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.4104, allocations: 1.265 MB / 0.5371 GB, free: 7.121 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.4108, allocations: 0.6779 MB / 0.5378 GB, free: 6.422 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.569e-05/0.4108, allocations: 1.031 kB / 0.5378 GB, free: 6.422 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.173e-05/0.4109, allocations: 17.52 kB / 0.5378 GB, free: 6.406 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4109, allocations: 1.875 kB / 0.5378 GB, free: 6.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02353/0.4344, allocations: 1.535 MB / 0.5393 GB, free: 5.531 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.948/8.383, allocations: 1.984 kB / 0.5393 GB, free: 5.531 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1)