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: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2254/0.2254, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 76.2 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3513, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003184/0.3545, allocations: 1.477 MB / 0.5331 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000976/0.3555, allocations: 482 kB / 0.5335 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.69e-05/0.3556, allocations: 4 kB / 0.5335 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.78e-05/0.3556, allocations: 3.938 kB / 0.5335 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.097e-05/0.3557, allocations: 5.312 kB / 0.5336 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.356, allocations: 33.39 kB / 0.5336 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.3561, allocations: 33.67 kB / 0.5336 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.324e-05/0.3562, allocations: 8.062 kB / 0.5336 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.3563, allocations: 25.53 kB / 0.5336 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.514e-05/0.3564, allocations: 17.42 kB / 0.5337 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.3564, allocations: 6.75 kB / 0.5337 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.282e-05/0.3565, allocations: 9.5 kB / 0.5337 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.432e-05/0.3565, allocations: 9.297 kB / 0.5337 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.879e-05/0.3565, allocations: 15.97 kB / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.3567, allocations: 37.25 kB / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3567, allocations: 1.844 kB / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3567, allocations: 0 / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.3567, allocations: 0 / 0.5337 GB, free: 11.93 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.000444/0.3571, allocations: 348.4 kB / 0.5341 GB, free: 11.56 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.3572, allocations: 13.28 kB / 0.5341 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.3573, allocations: 17.55 kB / 0.5341 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/0.3576, allocations: 173.7 kB / 0.5343 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.931e-06/0.3576, allocations: 1.719 kB / 0.5343 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.3576, allocations: 2.062 kB / 0.5343 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.3578, allocations: 69.48 kB / 0.5343 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.3578, allocations: 3.938 kB / 0.5343 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-06/0.3578, allocations: 4.875 kB / 0.5343 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3578, allocations: 1.062 kB / 0.5343 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.608e-05/0.3579, allocations: 19.98 kB / 0.5344 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003547/0.3583, allocations: 261.6 kB / 0.5346 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.027e-05/0.3584, allocations: 28.52 kB / 0.5346 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.732e-05/0.3584, allocations: 23.44 kB / 0.5347 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.3585, allocations: 0 / 0.5347 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.3585, allocations: 35.56 kB / 0.5347 GB, free: 10.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.3585, allocations: 0 / 0.5347 GB, free: 10.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002288/0.3587, allocations: 59.2 kB / 0.5348 GB, free: 10.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.3588, allocations: 78.39 kB / 0.5348 GB, free: 10.74 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.06e-05/0.3589, allocations: 116 kB / 0.5349 GB, free: 10.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.3589, allocations: 30.7 kB / 0.535 GB, free: 10.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.135e-05/0.359, allocations: 86.8 kB / 0.5351 GB, free: 10.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.359, allocations: 17.08 kB / 0.5351 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.359, allocations: 12 kB / 0.5351 GB, free: 10.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3592, allocations: 317 kB / 0.5354 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.932e-05/0.3592, allocations: 14.33 kB / 0.5354 GB, free: 10.15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.537e-05/0.3593, allocations: 33.97 kB / 0.5354 GB, free: 10.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.034e-05/0.3594, allocations: 28.97 kB / 0.5355 GB, free: 10.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3594, allocations: 0 / 0.5355 GB, free: 10.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001223/0.3595, allocations: 56.69 kB / 0.5355 GB, free: 10.05 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.3595, allocations: 5.844 kB / 0.5355 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.3595, allocations: 0 / 0.5355 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3596, allocations: 0 / 0.5355 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.662e-05/0.3596, allocations: 11.92 kB / 0.5355 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3597, allocations: 0 / 0.5355 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.403e-05/0.3597, allocations: 13.58 kB / 0.5355 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.3597, allocations: 1.438 kB / 0.5355 GB, free: 10.04 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 8.491e-05/0.3598, allocations: 120.4 kB / 0.5357 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.3599, allocations: 6.781 kB / 0.5357 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.3599, allocations: 7.531 kB / 0.5357 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3599, allocations: 1.281 kB / 0.5357 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3599, allocations: 0 / 0.5357 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.3599, allocations: 5.281 kB / 0.5357 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.3601, allocations: 166.7 kB / 0.5358 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.3601, allocations: 5.25 kB / 0.5358 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.83e-05/0.3601, allocations: 6.641 kB / 0.5358 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.3601, allocations: 0 / 0.5358 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.3602, allocations: 1.062 kB / 0.5358 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3602, allocations: 0 / 0.5358 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3602, allocations: 1.062 kB / 0.5358 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.3603, allocations: 164.2 kB / 0.536 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.973e-05/0.3604, allocations: 78.36 kB / 0.5361 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.3604, allocations: 1.125 kB / 0.5361 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.001e-05/0.3605, allocations: 10.23 kB / 0.5361 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.3606, allocations: 2.406 kB / 0.5361 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-06/0.3606, allocations: 5.203 kB / 0.5361 GB, free: 9.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.96e-05/0.3606, allocations: 90.75 kB / 0.5362 GB, free: 9.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3606, allocations: 0 / 0.5362 GB, free: 9.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002151/0.3609, allocations: 5.156 kB / 0.5362 GB, free: 9.34 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.0001178/0.361, allocations: 104 kB / 0.5363 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001528/0.3611, allocations: 23.92 kB / 0.5363 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3612, allocations: 1.312 kB / 0.5363 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.586e-05/0.3612, allocations: 15.28 kB / 0.5363 GB, free: 9.227 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.3614, allocations: 6.281 kB / 0.5363 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003354/0.3618, allocations: 159.9 kB / 0.5365 GB, free: 9.059 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.3621, allocations: 0.6785 MB / 0.5371 GB, free: 8.359 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.376e-05/0.3621, allocations: 9.812 kB / 0.5372 GB, free: 8.352 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3621, allocations: 0 / 0.5372 GB, free: 8.352 MB / 398.1 MB Notification: Performance of Templates: time 0.002178/0.3643, allocations: 0.667 MB / 0.5378 GB, free: 8.02 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/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