Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 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.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_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.001101/0.001101, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001195/0.001195, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2328/0.2328, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 75.88 kB / 480.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.3632, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.0026/0.3659, allocations: 1.466 MB / 0.5319 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008066/0.3667, allocations: 481.5 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.408e-05/0.3667, allocations: 5.531 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.385e-05/0.3668, allocations: 0 / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.358e-05/0.3668, allocations: 13.2 kB / 0.5324 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002178/0.3671, allocations: 23.94 kB / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.3672, allocations: 43.33 kB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.784e-05/0.3673, allocations: 12.73 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.3675, allocations: 20.28 kB / 0.5325 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.319e-05/0.3675, allocations: 18.89 kB / 0.5325 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.3675, allocations: 7.219 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.575e-05/0.3676, allocations: 6.875 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.291e-05/0.3676, allocations: 11.22 kB / 0.5325 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.382e-05/0.3677, allocations: 21.81 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001117/0.3678, allocations: 26.98 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3678, allocations: 0 / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.3678, allocations: 1.688 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.3678, allocations: 0 / 0.5326 GB, free: 11.77 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.0004486/0.3683, allocations: 356.7 kB / 0.5329 GB, free: 11.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.3683, allocations: 12.97 kB / 0.5329 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.307e-05/0.3683, allocations: 34.73 kB / 0.533 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.3685, allocations: 8.656 kB / 0.533 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.3687, allocations: 177.9 kB / 0.5332 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.3688, allocations: 8.312 kB / 0.5332 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.3688, allocations: 4.031 kB / 0.5332 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.3689, allocations: 66.11 kB / 0.5332 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.369, allocations: 4 kB / 0.5332 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.369, allocations: 0 / 0.5332 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.369, allocations: 0 / 0.5332 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.965e-05/0.3691, allocations: 18.67 kB / 0.5333 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003713/0.3695, allocations: 271 kB / 0.5335 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.782e-05/0.3696, allocations: 32.19 kB / 0.5335 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.911e-05/0.3696, allocations: 22.3 kB / 0.5336 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.3696, allocations: 1.375 kB / 0.5336 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.3697, allocations: 30.56 kB / 0.5336 GB, free: 10.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.3697, allocations: 1.375 kB / 0.5336 GB, free: 10.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002473/0.3699, allocations: 58.3 kB / 0.5337 GB, free: 10.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.484e-05/0.37, allocations: 77.11 kB / 0.5337 GB, free: 10.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.042e-05/0.3701, allocations: 120.9 kB / 0.5338 GB, free: 10.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.3701, allocations: 27.08 kB / 0.5339 GB, free: 10.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.435e-05/0.3702, allocations: 90.88 kB / 0.534 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.3702, allocations: 3.953 kB / 0.534 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.3702, allocations: 21.78 kB / 0.534 GB, free: 10.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3704, allocations: 320.1 kB / 0.5343 GB, free: 9.938 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.742e-05/0.3704, allocations: 10.88 kB / 0.5343 GB, free: 9.934 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.366e-05/0.3705, allocations: 29.95 kB / 0.5343 GB, free: 9.906 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.845e-05/0.3706, allocations: 25.22 kB / 0.5343 GB, free: 9.891 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3706, allocations: 0 / 0.5343 GB, free: 9.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000124/0.3707, allocations: 61 kB / 0.5344 GB, free: 9.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3707, allocations: 4.125 kB / 0.5344 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.3707, allocations: 1.375 kB / 0.5344 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.3708, allocations: 0 / 0.5344 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.371e-05/0.3708, allocations: 6.688 kB / 0.5344 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.3709, allocations: 5.406 kB / 0.5344 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.279e-05/0.3709, allocations: 17.22 kB / 0.5344 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.3709, allocations: 1.344 kB / 0.5344 GB, free: 9.824 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.221e-05/0.371, allocations: 112.5 kB / 0.5345 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.3711, allocations: 1.344 kB / 0.5346 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.871e-05/0.3711, allocations: 16.86 kB / 0.5346 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.3711, allocations: 1.594 kB / 0.5346 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3711, allocations: 0 / 0.5346 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3711, allocations: 4 kB / 0.5346 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.3713, allocations: 163.7 kB / 0.5347 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3713, allocations: 1.312 kB / 0.5347 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.69e-05/0.3713, allocations: 3 kB / 0.5347 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.3713, allocations: 4 kB / 0.5347 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.3714, allocations: 0 / 0.5347 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3714, allocations: 1.531 kB / 0.5347 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3714, allocations: 0 / 0.5347 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000184/0.3716, allocations: 164.1 kB / 0.5349 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.779e-05/0.3716, allocations: 79.23 kB / 0.535 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.3716, allocations: 1.375 kB / 0.535 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.616e-05/0.3717, allocations: 8.547 kB / 0.535 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.3718, allocations: 11.58 kB / 0.535 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.3718, allocations: 0 / 0.535 GB, free: 9.215 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.78e-05/0.3719, allocations: 95.36 kB / 0.5351 GB, free: 9.129 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3719, allocations: 0 / 0.5351 GB, free: 9.129 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002156/0.3721, allocations: 9.688 kB / 0.5351 GB, free: 9.125 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.0004457/0.3725, allocations: 0.6793 MB / 0.5358 GB, free: 8.449 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001592/0.3727, allocations: 28.92 kB / 0.5358 GB, free: 8.438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3727, allocations: 4.031 kB / 0.5358 GB, free: 8.434 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.234e-05/0.3728, allocations: 11.59 kB / 0.5358 GB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/0.373, allocations: 6.922 kB / 0.5358 GB, free: 8.426 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.3742, allocations: 1.258 MB / 0.537 GB, free: 7.191 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.3746, allocations: 0.6797 MB / 0.5377 GB, free: 6.492 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.602e-05/0.3746, allocations: 5.031 kB / 0.5377 GB, free: 6.488 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.007e-05/0.3747, allocations: 17.58 kB / 0.5377 GB, free: 6.473 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3747, allocations: 4 kB / 0.5377 GB, free: 6.469 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01864/0.3933, allocations: 1.524 MB / 0.5392 GB, free: 5.609 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.788/8.182, allocations: 20.14 kB / 0.5392 GB, free: 5.598 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches