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.001075/0.001075, allocations: 121.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00123/0.00123, allocations: 203.8 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2149/0.2149, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002629/0.002629, allocations: 71.88 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3712/0.3739, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003244/0.3771, allocations: 1.47 MB / 0.5324 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.3783, allocations: 485.7 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.32e-05/0.3784, allocations: 3.938 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.446e-05/0.3784, allocations: 1.375 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.872e-05/0.3785, allocations: 3.938 kB / 0.5329 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003099/0.3789, allocations: 37.39 kB / 0.5329 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001394/0.379, allocations: 42.92 kB / 0.533 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.3791, allocations: 8.125 kB / 0.533 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001787/0.3793, allocations: 17.61 kB / 0.533 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.521e-05/0.3794, allocations: 21.41 kB / 0.533 GB, free: 12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.714e-05/0.3794, allocations: 2.75 kB / 0.533 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.246e-05/0.3795, allocations: 4.125 kB / 0.533 GB, free: 12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.826e-05/0.3795, allocations: 13.3 kB / 0.533 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.781e-05/0.3796, allocations: 12.06 kB / 0.533 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.3797, allocations: 41.5 kB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3797, allocations: 5.375 kB / 0.5331 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3797, allocations: 0 / 0.5331 GB, free: 11.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.3798, allocations: 0 / 0.5331 GB, free: 11.94 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.0005687/0.3803, allocations: 349 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.3804, allocations: 9.625 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/0.3806, allocations: 17.08 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.3809, allocations: 174.2 kB / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.3809, allocations: 9.75 kB / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.3809, allocations: 5.688 kB / 0.5336 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.3811, allocations: 61.33 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.3811, allocations: 1.375 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.3811, allocations: 0 / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.3812, allocations: 0 / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.435e-05/0.3813, allocations: 24.3 kB / 0.5337 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004274/0.3817, allocations: 262.7 kB / 0.534 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.3818, allocations: 32.19 kB / 0.534 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.958e-05/0.3819, allocations: 18.34 kB / 0.534 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.3819, allocations: 1.375 kB / 0.534 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.3819, allocations: 34.5 kB / 0.534 GB, free: 10.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3819, allocations: 5.375 kB / 0.534 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002569/0.3822, allocations: 62.23 kB / 0.5341 GB, free: 10.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.3823, allocations: 78.48 kB / 0.5342 GB, free: 10.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.611e-05/0.3824, allocations: 112.8 kB / 0.5343 GB, free: 10.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.3824, allocations: 25.7 kB / 0.5343 GB, free: 10.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.963e-05/0.3824, allocations: 86.89 kB / 0.5344 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.3825, allocations: 9.219 kB / 0.5344 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.3825, allocations: 24.58 kB / 0.5344 GB, free: 10.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.3826, allocations: 312.2 kB / 0.5347 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.311e-05/0.3827, allocations: 14.86 kB / 0.5347 GB, free: 10.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.103e-05/0.3828, allocations: 21.97 kB / 0.5348 GB, free: 10.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.41e-05/0.3828, allocations: 33.19 kB / 0.5348 GB, free: 10.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3829, allocations: 0 / 0.5348 GB, free: 10.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001429/0.383, allocations: 64.84 kB / 0.5348 GB, free: 10.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.383, allocations: 9.5 kB / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.383, allocations: 0 / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3831, allocations: 0 / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.191e-05/0.3832, allocations: 8.109 kB / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.3832, allocations: 0 / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.849e-05/0.3832, allocations: 9.5 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-06/0.3832, allocations: 1.375 kB / 0.5349 GB, free: 10.06 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.000107/0.3834, allocations: 120.5 kB / 0.535 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.082e-05/0.3834, allocations: 5.375 kB / 0.535 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.044e-05/0.3834, allocations: 12.84 kB / 0.535 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3834, allocations: 5.312 kB / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3834, allocations: 0 / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3835, allocations: 0 / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.3836, allocations: 164.5 kB / 0.5352 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3837, allocations: 4 kB / 0.5352 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.865e-05/0.3837, allocations: 2.75 kB / 0.5352 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3837, allocations: 1.312 kB / 0.5352 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.3837, allocations: 4.359 kB / 0.5352 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3837, allocations: 4 kB / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3837, allocations: 1.344 kB / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001803/0.3839, allocations: 152.5 kB / 0.5353 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.636e-05/0.384, allocations: 86.62 kB / 0.5354 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.384, allocations: 1.406 kB / 0.5354 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.935e-05/0.3841, allocations: 4.25 kB / 0.5354 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.698e-05/0.3842, allocations: 14.92 kB / 0.5354 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.3842, allocations: 1.125 kB / 0.5354 GB, free: 9.441 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.036e-05/0.3842, allocations: 94.17 kB / 0.5355 GB, free: 9.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3842, allocations: 1.156 kB / 0.5355 GB, free: 9.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002183/0.3845, allocations: 5.281 kB / 0.5355 GB, free: 9.355 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.0001094/0.3846, allocations: 90.47 kB / 0.5356 GB, free: 9.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001578/0.3847, allocations: 25.17 kB / 0.5356 GB, free: 9.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3848, allocations: 4 kB / 0.5356 GB, free: 9.258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.897e-05/0.3848, allocations: 16.8 kB / 0.5357 GB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002247/0.385, allocations: 5.094 kB / 0.5357 GB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003111/0.3854, allocations: 134.3 kB / 0.5358 GB, free: 9.113 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.3857, allocations: 0.6791 MB / 0.5365 GB, free: 8.414 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.77e-05/0.3857, allocations: 5.547 kB / 0.5365 GB, free: 8.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.242e-05/0.3857, allocations: 13.91 kB / 0.5365 GB, free: 8.398 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3858, allocations: 0 / 0.5365 GB, free: 8.398 MB / 398.1 MB Notification: Performance of Templates: time 0.002875/0.3886, allocations: 0.5903 MB / 0.5371 GB, free: 8.098 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches