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.001061/0.001062, allocations: 119.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 210.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2137/0.2137, allocations: 46.09 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 67.89 kB / 482 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3268, allocations: 62.44 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002264/0.3291, allocations: 1.471 MB / 0.5331 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007332/0.3298, allocations: 485.8 kB / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.452e-05/0.3299, allocations: 1.344 kB / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.368e-05/0.3299, allocations: 0 / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.735e-05/0.3299, allocations: 7.875 kB / 0.5336 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.3301, allocations: 29.39 kB / 0.5336 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.345e-05/0.3302, allocations: 42.89 kB / 0.5336 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.33e-05/0.3303, allocations: 11.11 kB / 0.5336 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.441e-05/0.3304, allocations: 14.47 kB / 0.5336 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.193e-05/0.3305, allocations: 28.39 kB / 0.5337 GB, free: 12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.3305, allocations: 2.906 kB / 0.5337 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.509e-05/0.3306, allocations: 6.656 kB / 0.5337 GB, free: 12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.259e-05/0.3306, allocations: 7.938 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.358e-05/0.3306, allocations: 11.69 kB / 0.5337 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.613e-05/0.3307, allocations: 46.69 kB / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3307, allocations: 0 / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3307, allocations: 0 / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.3307, allocations: 0 / 0.5337 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.0004036/0.3311, allocations: 349.2 kB / 0.5341 GB, free: 11.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.3312, allocations: 8.969 kB / 0.5341 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.3313, allocations: 17.8 kB / 0.5341 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.3315, allocations: 178.2 kB / 0.5343 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.3315, allocations: 5.734 kB / 0.5343 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.3316, allocations: 1.75 kB / 0.5343 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001386/0.3317, allocations: 65.27 kB / 0.5343 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3317, allocations: 4 kB / 0.5343 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.3317, allocations: 5.312 kB / 0.5344 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.3318, allocations: 0 / 0.5344 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.161e-05/0.3318, allocations: 18.98 kB / 0.5344 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003224/0.3322, allocations: 262.6 kB / 0.5346 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.519e-05/0.3323, allocations: 32.19 kB / 0.5347 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.422e-05/0.3323, allocations: 19.73 kB / 0.5347 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.3323, allocations: 0 / 0.5347 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.3324, allocations: 35.88 kB / 0.5347 GB, free: 10.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.3324, allocations: 0 / 0.5347 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.000214/0.3326, allocations: 59.67 kB / 0.5348 GB, free: 10.85 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.3326, allocations: 77.11 kB / 0.5348 GB, free: 10.76 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.45e-05/0.3327, allocations: 120.9 kB / 0.535 GB, free: 10.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.3327, allocations: 27.08 kB / 0.535 GB, free: 10.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.612e-05/0.3328, allocations: 89.5 kB / 0.5351 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.3328, allocations: 9.219 kB / 0.5351 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.3328, allocations: 17.84 kB / 0.5351 GB, free: 10.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.39e-05/0.3329, allocations: 316.2 kB / 0.5354 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.554e-05/0.333, allocations: 9.5 kB / 0.5354 GB, free: 10.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.094e-05/0.3331, allocations: 35.27 kB / 0.5354 GB, free: 10.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.267e-05/0.3331, allocations: 25.22 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3331, allocations: 3.938 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001238/0.3333, allocations: 55.47 kB / 0.5355 GB, free: 10.08 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.3333, allocations: 11.98 kB / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3333, allocations: 0 / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.3333, allocations: 1.375 kB / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.214e-05/0.3334, allocations: 6.75 kB / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.3334, allocations: 4.031 kB / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.62e-05/0.3335, allocations: 9.484 kB / 0.5355 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.3335, allocations: 1.375 kB / 0.5355 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 7.286e-05/0.3336, allocations: 120.4 kB / 0.5357 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/0.3336, allocations: 2.75 kB / 0.5357 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.188e-05/0.3336, allocations: 8.906 kB / 0.5357 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.3336, allocations: 0 / 0.5357 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3336, allocations: 3.938 kB / 0.5357 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.85e-05/0.3337, allocations: 90.38 kB / 0.5358 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.3337, allocations: 1.516 kB / 0.5358 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.54e-05/0.3338, allocations: 9.5 kB / 0.5358 GB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.3338, allocations: 18.66 kB / 0.5358 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001515/0.334, allocations: 130.8 kB / 0.5359 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001649/0.3342, allocations: 228.7 kB / 0.5361 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.687e-05/0.3342, allocations: 14.86 kB / 0.5361 GB, free: 9.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.374e-05/0.3343, allocations: 86.53 kB / 0.5362 GB, free: 9.375 MB / 398.1 MB Notification: Performance of Backend: time 2.5e-07/0.3343, allocations: 0 / 0.5362 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000352/0.3346, allocations: 94.03 kB / 0.5363 GB, free: 9.301 MB / 398.1 MB Notification: Performance of SimCode: time 0.0003605/0.335, allocations: 0.5707 MB / 0.5369 GB, free: 8.703 MB / 398.1 MB Notification: Performance of Templates: time 0.002654/0.3377, allocations: 0.7287 MB / 0.5376 GB, free: 8.324 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