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.001302/0.001302, allocations: 121.8 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.001284/0.001284, 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.467/1.467, allocations: 227.4 MB / 247 MB, free: 10.4 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.2303/0.2303, allocations: 46.13 MB / 344.4 MB, free: 11.42 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.00244/0.00244, allocations: 75.88 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.366, allocations: 62.44 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003055/0.3691, allocations: 1.454 MB / 0.532 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009647/0.3701, allocations: 498.4 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.953e-05/0.3702, allocations: 0 / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.892e-05/0.3702, allocations: 0 / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.323e-05/0.3703, allocations: 5.781 kB / 0.5325 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.3706, allocations: 32.89 kB / 0.5325 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.3707, allocations: 38.11 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.69e-05/0.3708, allocations: 8.438 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.371, allocations: 21.14 kB / 0.5326 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.399e-05/0.371, allocations: 20.22 kB / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.527e-05/0.3711, allocations: 3.656 kB / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.38e-05/0.3711, allocations: 5.688 kB / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.974e-05/0.3711, allocations: 11.92 kB / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.815e-05/0.3712, allocations: 12.66 kB / 0.5326 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.3713, allocations: 40.77 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3713, allocations: 0 / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.3713, allocations: 0 / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.3713, allocations: 3.938 kB / 0.5327 GB, free: 11.67 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.0005261/0.3719, allocations: 354.6 kB / 0.533 GB, free: 11.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.3719, allocations: 9.938 kB / 0.533 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.381e-05/0.372, allocations: 30.75 kB / 0.5331 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.3721, allocations: 13.77 kB / 0.5331 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.3724, allocations: 177.1 kB / 0.5332 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.3724, allocations: 4.312 kB / 0.5332 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.3724, allocations: 2.125 kB / 0.5332 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.3726, allocations: 69.78 kB / 0.5333 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.3726, allocations: 0 / 0.5333 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-06/0.3726, allocations: 1.531 kB / 0.5333 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.3727, allocations: 0 / 0.5333 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.799e-05/0.3727, allocations: 22.89 kB / 0.5333 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004342/0.3732, allocations: 271.4 kB / 0.5336 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.687e-05/0.3733, allocations: 31.55 kB / 0.5336 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.551e-05/0.3734, allocations: 20.03 kB / 0.5336 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.3734, allocations: 0 / 0.5336 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.3734, allocations: 36.28 kB / 0.5337 GB, free: 10.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.41e-07/0.3734, allocations: 3.938 kB / 0.5337 GB, free: 10.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002472/0.3737, allocations: 63.2 kB / 0.5337 GB, free: 10.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.605e-05/0.3738, allocations: 81.23 kB / 0.5338 GB, free: 10.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.706e-05/0.3739, allocations: 109 kB / 0.5339 GB, free: 10.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.3739, allocations: 27.05 kB / 0.5339 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.5e-05/0.374, allocations: 85.45 kB / 0.534 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.985e-05/0.374, allocations: 9.312 kB / 0.534 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.3741, allocations: 16.38 kB / 0.5341 GB, free: 10.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3742, allocations: 319.9 kB / 0.5344 GB, free: 9.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.268e-05/0.3743, allocations: 15.67 kB / 0.5344 GB, free: 9.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.122e-05/0.3744, allocations: 30.33 kB / 0.5344 GB, free: 9.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.416e-05/0.3744, allocations: 25.19 kB / 0.5344 GB, free: 9.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3745, allocations: 0 / 0.5344 GB, free: 9.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001282/0.3746, allocations: 55.66 kB / 0.5345 GB, free: 9.758 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3746, allocations: 7.719 kB / 0.5345 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3746, allocations: 1.594 kB / 0.5345 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.3746, allocations: 0 / 0.5345 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.297e-05/0.3747, allocations: 11.33 kB / 0.5345 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.3747, allocations: 0 / 0.5345 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.001e-05/0.3748, allocations: 13.59 kB / 0.5345 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.3748, allocations: 0.9688 kB / 0.5345 GB, free: 9.742 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 0.000119/0.3749, allocations: 125.6 kB / 0.5346 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.769e-05/0.375, allocations: 2.812 kB / 0.5346 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.491e-05/0.375, allocations: 7.469 kB / 0.5346 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.375, allocations: 0 / 0.5346 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.375, allocations: 5.375 kB / 0.5346 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.375, allocations: 0 / 0.5346 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.3752, allocations: 167.1 kB / 0.5348 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3753, allocations: 5.375 kB / 0.5348 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.961e-05/0.3753, allocations: 6.734 kB / 0.5348 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3753, allocations: 0 / 0.5348 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.3753, allocations: 1.375 kB / 0.5348 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3753, allocations: 384 / 0.5348 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3753, allocations: 144 / 0.5348 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002013/0.3755, allocations: 161.3 kB / 0.535 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.955e-05/0.3756, allocations: 78.48 kB / 0.5351 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.23e-05/0.3756, allocations: 9.312 kB / 0.5351 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.329e-05/0.3757, allocations: 9.484 kB / 0.5351 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.3758, allocations: 6.688 kB / 0.5351 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.3758, allocations: 5.359 kB / 0.5351 GB, free: 9.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.523e-05/0.3758, allocations: 86.16 kB / 0.5352 GB, free: 9.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3758, allocations: 4.031 kB / 0.5352 GB, free: 9.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.3761, allocations: 5.5 kB / 0.5352 GB, free: 9.035 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.0005644/0.3766, allocations: 0.6794 MB / 0.5358 GB, free: 8.359 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001635/0.3768, allocations: 32.45 kB / 0.5359 GB, free: 8.344 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3768, allocations: 5.375 kB / 0.5359 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.078e-05/0.3769, allocations: 12.23 kB / 0.5359 GB, free: 8.336 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.3771, allocations: 1.375 kB / 0.5359 GB, free: 8.336 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.3787, allocations: 1.273 MB / 0.5371 GB, free: 7.086 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.3791, allocations: 0.6782 MB / 0.5378 GB, free: 6.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.263e-05/0.3791, allocations: 6.75 kB / 0.5378 GB, free: 6.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.297e-05/0.3792, allocations: 12.81 kB / 0.5378 GB, free: 6.371 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3792, allocations: 0 / 0.5378 GB, free: 6.371 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03599/0.4152, allocations: 1.542 MB / 0.5393 GB, free: 5.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.249/8.664, allocations: 2.234 kB / 0.5393 GB, free: 5.5 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1)