Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009904/0.0009905, allocations: 200.5 kB / 16.1 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 226.5 MB / 243.4 MB, free: 6.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007397/0.0007397, allocations: 98.34 kB / 295.5 MB, free: 6.633 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3523/0.3523, allocations: 44.83 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.000392, allocations: 8 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3972, allocations: 62.96 MB / 0.5159 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001582/0.3988, allocations: 1.173 MB / 0.517 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007432/0.3996, allocations: 427.4 kB / 0.5174 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.536e-05/0.3997, allocations: 0 / 0.5174 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.262e-05/0.3997, allocations: 3.328 kB / 0.5174 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.811e-05/0.3998, allocations: 3.938 kB / 0.5174 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.4, allocations: 20.72 kB / 0.5175 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.262e-05/0.4001, allocations: 26.42 kB / 0.5175 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.4002, allocations: 6.984 kB / 0.5175 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.4003, allocations: 19.97 kB / 0.5175 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.435e-05/0.4004, allocations: 12.89 kB / 0.5175 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.667e-05/0.4005, allocations: 2.812 kB / 0.5175 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.711e-05/0.4005, allocations: 6.906 kB / 0.5175 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.478e-05/0.4005, allocations: 7.219 kB / 0.5175 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.237e-05/0.4006, allocations: 37.14 kB / 0.5176 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.763e-05/0.4007, allocations: 27.34 kB / 0.5176 GB, free: 35.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.4007, allocations: 4 kB / 0.5176 GB, free: 35.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.4007, allocations: 0 / 0.5176 GB, free: 35.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.4007, allocations: 0 / 0.5176 GB, free: 35.98 MB / 378.7 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.0004953/0.4012, allocations: 345.2 kB / 0.5179 GB, free: 35.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.4013, allocations: 8.812 kB / 0.5179 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001528/0.4014, allocations: 20.11 kB / 0.518 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.4016, allocations: 171.2 kB / 0.5181 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.4016, allocations: 384 / 0.5181 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.556e-05/0.4016, allocations: 4.375 kB / 0.5181 GB, free: 35.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.4018, allocations: 62.23 kB / 0.5182 GB, free: 35.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.4018, allocations: 3.938 kB / 0.5182 GB, free: 35.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.4018, allocations: 6.984 kB / 0.5182 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.4018, allocations: 3.188 kB / 0.5182 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.914e-05/0.4019, allocations: 26.19 kB / 0.5182 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004211/0.4024, allocations: 272 kB / 0.5185 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.828e-05/0.4025, allocations: 34.73 kB / 0.5185 GB, free: 35.03 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.389e-05/0.4025, allocations: 17.23 kB / 0.5185 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.4025, allocations: 0 / 0.5185 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.4026, allocations: 37.5 kB / 0.5186 GB, free: 34.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.4026, allocations: 3.938 kB / 0.5186 GB, free: 34.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002409/0.4028, allocations: 71.53 kB / 0.5186 GB, free: 34.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.4029, allocations: 77.11 kB / 0.5187 GB, free: 34.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.355e-05/0.4029, allocations: 110.1 kB / 0.5188 GB, free: 34.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.403, allocations: 25.7 kB / 0.5188 GB, free: 34.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.747e-05/0.403, allocations: 94.47 kB / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.336e-05/0.403, allocations: 3.938 kB / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-06/0.403, allocations: 0 / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.253e-05/0.4031, allocations: 317.9 kB / 0.5192 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.496e-05/0.4032, allocations: 16.38 kB / 0.5192 GB, free: 34.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.354e-05/0.4032, allocations: 25.91 kB / 0.5193 GB, free: 34.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.156e-05/0.4033, allocations: 31.97 kB / 0.5193 GB, free: 34.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.4033, allocations: 0 / 0.5193 GB, free: 34.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000112/0.4034, allocations: 76.02 kB / 0.5194 GB, free: 34.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.4034, allocations: 8.875 kB / 0.5194 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.4034, allocations: 0 / 0.5194 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.4035, allocations: 0 / 0.5194 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.312e-05/0.4035, allocations: 6.578 kB / 0.5194 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.4035, allocations: 0 / 0.5194 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.284e-05/0.4036, allocations: 8.594 kB / 0.5194 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.4036, allocations: 6.812 kB / 0.5194 GB, free: 34.2 MB / 378.7 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 ($PRE.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.088e-05/0.4037, allocations: 116.6 kB / 0.5195 GB, free: 34.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.4037, allocations: 3.906 kB / 0.5195 GB, free: 34.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.449e-05/0.4037, allocations: 11.12 kB / 0.5195 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.4037, allocations: 0 / 0.5195 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.4038, allocations: 0 / 0.5195 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.4038, allocations: 4 kB / 0.5195 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.4039, allocations: 166.5 kB / 0.5197 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4039, allocations: 0 / 0.5197 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.638e-05/0.4039, allocations: 14.42 kB / 0.5197 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.4039, allocations: 2.938 kB / 0.5197 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.404, allocations: 0 / 0.5197 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.404, allocations: 4.25 kB / 0.5197 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.404, allocations: 0 / 0.5197 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.4041, allocations: 159.5 kB / 0.5199 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.969e-05/0.4041, allocations: 77.11 kB / 0.5199 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.821e-05/0.4042, allocations: 2.906 kB / 0.5199 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.918e-05/0.4042, allocations: 12.05 kB / 0.52 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.726e-05/0.4043, allocations: 13.48 kB / 0.52 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.4043, allocations: 0 / 0.52 GB, free: 33.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.681e-05/0.4043, allocations: 85.98 kB / 0.5201 GB, free: 33.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4043, allocations: 0 / 0.5201 GB, free: 33.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002045/0.4045, allocations: 18.47 kB / 0.5201 GB, free: 33.53 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.015e-05/0.4046, allocations: 94.38 kB / 0.5202 GB, free: 33.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.4048, allocations: 35.14 kB / 0.5202 GB, free: 33.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4048, allocations: 0 / 0.5202 GB, free: 33.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.541e-05/0.4048, allocations: 15.92 kB / 0.5202 GB, free: 33.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/0.405, allocations: 10.84 kB / 0.5202 GB, free: 33.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000249/0.4053, allocations: 159.1 kB / 0.5204 GB, free: 33.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.4054, allocations: 0.6807 MB / 0.521 GB, free: 32.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.057e-05/0.4055, allocations: 7.438 kB / 0.521 GB, free: 32.56 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4055, allocations: 3.938 kB / 0.521 GB, free: 32.55 MB / 378.7 MB Notification: Performance of Templates: time 0.001617/0.4071, allocations: 0.6148 MB / 0.5216 GB, free: 32.53 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches