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.001369/0.001369, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 203.9 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2691/0.2691, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 79.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4849/0.4865, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002801/0.4893, allocations: 1.455 MB / 0.5324 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009093/0.4903, allocations: 489.7 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.519e-05/0.4903, allocations: 1.25 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.853e-05/0.4904, allocations: 3.984 kB / 0.5329 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.737e-05/0.4904, allocations: 13.14 kB / 0.5329 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.4907, allocations: 21.27 kB / 0.5329 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.4908, allocations: 38.41 kB / 0.5329 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.969e-05/0.4909, allocations: 16.59 kB / 0.533 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.491, allocations: 20.31 kB / 0.533 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.596e-05/0.4911, allocations: 17.86 kB / 0.533 GB, free: 12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.4911, allocations: 1.938 kB / 0.533 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.234e-05/0.4912, allocations: 5.656 kB / 0.533 GB, free: 12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.696e-05/0.4912, allocations: 9.812 kB / 0.533 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.851e-05/0.4912, allocations: 23.69 kB / 0.533 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.4914, allocations: 30.64 kB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4914, allocations: 0 / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.4914, allocations: 0 / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.4914, allocations: 5.812 kB / 0.5331 GB, free: 11.95 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.0004746/0.4919, allocations: 355.2 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.4919, allocations: 9.688 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.4921, allocations: 13.88 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.4923, allocations: 180.9 kB / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.921e-06/0.4924, allocations: 384 / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.4924, allocations: 1.719 kB / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/0.4925, allocations: 62.34 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.4926, allocations: 7.875 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.4926, allocations: 0 / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.4926, allocations: 1.469 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.828e-05/0.4927, allocations: 23 kB / 0.5337 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003973/0.4931, allocations: 266.6 kB / 0.534 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.14e-05/0.4932, allocations: 36.06 kB / 0.534 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.761e-05/0.4932, allocations: 15.11 kB / 0.534 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.4933, allocations: 1.5 kB / 0.534 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.4933, allocations: 38.48 kB / 0.534 GB, free: 10.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.262e-06/0.4933, allocations: 5.344 kB / 0.534 GB, free: 10.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002417/0.4935, allocations: 61.91 kB / 0.5341 GB, free: 10.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.754e-05/0.4936, allocations: 82.47 kB / 0.5342 GB, free: 10.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.617e-05/0.4937, allocations: 108.8 kB / 0.5343 GB, free: 10.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.4937, allocations: 27.08 kB / 0.5343 GB, free: 10.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.368e-05/0.4938, allocations: 85.52 kB / 0.5344 GB, free: 10.51 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.843e-05/0.4938, allocations: 9.266 kB / 0.5344 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.504e-05/0.4939, allocations: 16.47 kB / 0.5344 GB, free: 10.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.494, allocations: 316.3 kB / 0.5347 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.16e-05/0.4941, allocations: 14.88 kB / 0.5347 GB, free: 10.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.044e-05/0.4941, allocations: 29.89 kB / 0.5348 GB, free: 10.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.786e-05/0.4942, allocations: 29.16 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4942, allocations: 0 / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001241/0.4944, allocations: 60.92 kB / 0.5348 GB, free: 10.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.4944, allocations: 5.5 kB / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.4944, allocations: 4.031 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.4944, allocations: 144 / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.805e-05/0.4945, allocations: 4.125 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.4945, allocations: 3.984 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.675e-05/0.4946, allocations: 21.36 kB / 0.5349 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.4946, allocations: 1.375 kB / 0.5349 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.4e-05/0.4947, allocations: 116.5 kB / 0.535 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.576e-05/0.4947, allocations: 6.75 kB / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.668e-05/0.4947, allocations: 11.52 kB / 0.535 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.4947, allocations: 1.375 kB / 0.535 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4948, allocations: 0 / 0.535 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.4948, allocations: 3.938 kB / 0.535 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.4949, allocations: 168.5 kB / 0.5352 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4949, allocations: 0 / 0.5352 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.426e-05/0.495, allocations: 2.75 kB / 0.5352 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.495, allocations: 1.375 kB / 0.5352 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.495, allocations: 0 / 0.5352 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/0.495, allocations: 9.734 kB / 0.5352 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.495, allocations: 0 / 0.5352 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001703/0.4952, allocations: 153.3 kB / 0.5353 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.4952, allocations: 81.05 kB / 0.5354 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.4953, allocations: 5.312 kB / 0.5354 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.53e-05/0.4954, allocations: 13.48 kB / 0.5354 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.4954, allocations: 6.734 kB / 0.5354 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.4954, allocations: 1.375 kB / 0.5354 GB, free: 9.426 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.284e-05/0.4955, allocations: 94.17 kB / 0.5355 GB, free: 9.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4955, allocations: 0 / 0.5355 GB, free: 9.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002025/0.4957, allocations: 5.5 kB / 0.5355 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 9.613e-05/0.4958, allocations: 91.62 kB / 0.5356 GB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001562/0.496, allocations: 28.48 kB / 0.5357 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.496, allocations: 1.375 kB / 0.5357 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.914e-05/0.496, allocations: 18.8 kB / 0.5357 GB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.4962, allocations: 13.22 kB / 0.5357 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002769/0.4965, allocations: 116.8 kB / 0.5358 GB, free: 9.105 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.4968, allocations: 0.6782 MB / 0.5365 GB, free: 8.406 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.795e-05/0.4968, allocations: 2.75 kB / 0.5365 GB, free: 8.406 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.943e-05/0.4968, allocations: 12.8 kB / 0.5365 GB, free: 8.395 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4968, allocations: 0 / 0.5365 GB, free: 8.395 MB / 398.1 MB Notification: Performance of Templates: time 0.002737/0.4996, allocations: 0.6006 MB / 0.5371 GB, free: 8.086 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