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.0009509/0.0009509, allocations: 201.5 kB / 15.8 MB, free: 6.328 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.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006848/0.0006847, allocations: 104.4 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1795/0.1795, allocations: 44.84 MB / 392 MB, free: 9.344 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002331/0.0002331, allocations: 8 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08838/0.08863, allocations: 62.96 MB / 0.5153 GB, free: 2.785 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001481/0.09015, allocations: 1.16 MB / 0.5165 GB, free: 1.605 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006151/0.09078, allocations: 423.3 kB / 0.5169 GB, free: 1.188 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.551e-05/0.09082, allocations: 0 / 0.5169 GB, free: 1.188 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.09085, allocations: 8 kB / 0.5169 GB, free: 1.18 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.998e-05/0.0909, allocations: 7.922 kB / 0.5169 GB, free: 1.172 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001499/0.09106, allocations: 15.98 kB / 0.5169 GB, free: 1.156 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.403e-05/0.09113, allocations: 31.86 kB / 0.5169 GB, free: 1.125 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.221e-05/0.09121, allocations: 0 / 0.5169 GB, free: 1.125 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.09133, allocations: 23.97 kB / 0.5169 GB, free: 1.102 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.591e-05/0.09139, allocations: 11.92 kB / 0.517 GB, free: 1.09 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.152e-05/0.09141, allocations: 0 / 0.517 GB, free: 1.09 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.524e-05/0.09145, allocations: 8 kB / 0.517 GB, free: 1.082 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.624e-05/0.09147, allocations: 7.938 kB / 0.517 GB, free: 1.074 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.281e-05/0.0915, allocations: 29.7 kB / 0.517 GB, free: 1.039 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 7.195e-05/0.09158, allocations: 35.88 kB / 0.517 GB, free: 1.004 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.09159, allocations: 0 / 0.517 GB, free: 1.004 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.0916, allocations: 0 / 0.517 GB, free: 1.004 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.09161, allocations: 0 / 0.517 GB, free: 1.004 MB / 346.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.0004008/0.09201, allocations: 347.5 kB / 0.5174 GB, free: 0.6172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.09206, allocations: 12.03 kB / 0.5174 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.0922, allocations: 19.98 kB / 0.5174 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.09233, allocations: 170.9 kB / 0.5176 GB, free: 388 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.09235, allocations: 4 kB / 0.5176 GB, free: 384 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.09237, allocations: 0 / 0.5176 GB, free: 384 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.09253, allocations: 63.33 kB / 0.5176 GB, free: 308 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.09254, allocations: 4 kB / 0.5176 GB, free: 304 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.09256, allocations: 4 kB / 0.5176 GB, free: 300 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.09257, allocations: 0 / 0.5176 GB, free: 300 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.648e-05/0.09266, allocations: 27.97 kB / 0.5177 GB, free: 272 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1655/0.2581, allocations: 261.8 kB / 0.5179 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.2583, allocations: 36.06 kB / 0.5179 GB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.511e-05/0.2583, allocations: 20.83 kB / 0.518 GB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.2584, allocations: 0 / 0.518 GB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.2584, allocations: 33.44 kB / 0.518 GB, free: 11.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.352e-06/0.2584, allocations: 0 / 0.518 GB, free: 11.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002572/0.2587, allocations: 68.73 kB / 0.5181 GB, free: 11.67 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.2587, allocations: 79.33 kB / 0.5181 GB, free: 11.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.099e-05/0.2588, allocations: 110.3 kB / 0.5182 GB, free: 11.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.257e-05/0.2588, allocations: 27.88 kB / 0.5183 GB, free: 11.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.031e-05/0.2588, allocations: 90.06 kB / 0.5183 GB, free: 11.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.422e-05/0.2588, allocations: 6 kB / 0.5184 GB, free: 11.37 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.2589, allocations: 0.75 kB / 0.5184 GB, free: 11.37 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.888e-05/0.2589, allocations: 319 kB / 0.5187 GB, free: 11.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.028e-05/0.259, allocations: 14.23 kB / 0.5187 GB, free: 11.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.378e-05/0.259, allocations: 26.78 kB / 0.5187 GB, free: 11.04 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.049e-05/0.2591, allocations: 19.2 kB / 0.5187 GB, free: 11.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.2591, allocations: 0.6562 kB / 0.5187 GB, free: 11.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001238/0.2592, allocations: 62.66 kB / 0.5188 GB, free: 11.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.2592, allocations: 5.531 kB / 0.5188 GB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.2592, allocations: 0.75 kB / 0.5188 GB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.2593, allocations: 0.5312 kB / 0.5188 GB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.892e-05/0.2593, allocations: 9.219 kB / 0.5188 GB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.2593, allocations: 0.9062 kB / 0.5188 GB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.436e-05/0.2594, allocations: 15.67 kB / 0.5188 GB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.2594, allocations: 2.219 kB / 0.5188 GB, free: 11.01 MB / 346.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 5.307e-05/0.2595, allocations: 113.5 kB / 0.5189 GB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.57e-05/0.2595, allocations: 8.391 kB / 0.5189 GB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.331e-05/0.2595, allocations: 18.88 kB / 0.5189 GB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.2596, allocations: 0 / 0.5189 GB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2596, allocations: 0.8125 kB / 0.5189 GB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.2596, allocations: 0.5625 kB / 0.5189 GB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001103/0.2597, allocations: 160.6 kB / 0.5191 GB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2597, allocations: 1.234 kB / 0.5191 GB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.939e-05/0.2597, allocations: 5.328 kB / 0.5191 GB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.2597, allocations: 0.6562 kB / 0.5191 GB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-06/0.2598, allocations: 5.172 kB / 0.5191 GB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2598, allocations: 0.6875 kB / 0.5191 GB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2598, allocations: 4.562 kB / 0.5191 GB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001384/0.2599, allocations: 156.7 kB / 0.5193 GB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.664e-05/0.2599, allocations: 78.67 kB / 0.5193 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.26, allocations: 2.578 kB / 0.5193 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.898e-05/0.2601, allocations: 24 kB / 0.5194 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.988e-05/0.2601, allocations: 9.312 kB / 0.5194 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.2601, allocations: 1.594 kB / 0.5194 GB, free: 10.45 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.832e-05/0.2601, allocations: 86.92 kB / 0.5195 GB, free: 10.38 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2602, allocations: 0.9375 kB / 0.5195 GB, free: 10.38 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002126/0.2604, allocations: 6.469 kB / 0.5195 GB, free: 10.38 MB / 346.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 6.771e-05/0.2604, allocations: 91.94 kB / 0.5196 GB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001421/0.2606, allocations: 38.11 kB / 0.5196 GB, free: 10.28 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2606, allocations: 1.156 kB / 0.5196 GB, free: 10.28 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.077e-05/0.2607, allocations: 14.69 kB / 0.5196 GB, free: 10.28 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001814/0.2608, allocations: 4.234 kB / 0.5196 GB, free: 10.28 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002303/0.2611, allocations: 163.3 kB / 0.5198 GB, free: 10.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.101e-05/0.2612, allocations: 0.6797 MB / 0.5204 GB, free: 9.434 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.706e-05/0.2612, allocations: 11.02 kB / 0.5204 GB, free: 9.426 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2612, allocations: 4.469 kB / 0.5204 GB, free: 9.426 MB / 346.7 MB Notification: Performance of Templates: time 0.001647/0.2629, allocations: 0.6298 MB / 0.5211 GB, free: 9.402 MB / 346.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