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.001037/0.001038, allocations: 112.9 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001008/0.001008, allocations: 208.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1967/0.1967, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 71.89 kB / 482 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2715, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002254/0.2738, allocations: 1.463 MB / 0.5331 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007183/0.2745, allocations: 492.1 kB / 0.5335 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.595e-05/0.2746, allocations: 1.469 kB / 0.5335 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.08e-05/0.2746, allocations: 3.938 kB / 0.5335 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.54e-05/0.2747, allocations: 8.906 kB / 0.5335 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001964/0.2749, allocations: 28.92 kB / 0.5336 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.695e-05/0.275, allocations: 42.17 kB / 0.5336 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.415e-05/0.275, allocations: 7.938 kB / 0.5336 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.2752, allocations: 19.05 kB / 0.5336 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.69e-05/0.2752, allocations: 20.38 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.2752, allocations: 2.094 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.611e-05/0.2753, allocations: 5.844 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.435e-05/0.2753, allocations: 13.77 kB / 0.5337 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.521e-05/0.2753, allocations: 11.81 kB / 0.5337 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.553e-05/0.2754, allocations: 41.62 kB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2754, allocations: 0 / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2755, allocations: 3.938 kB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.2755, allocations: 4 kB / 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.0004041/0.2759, allocations: 346.1 kB / 0.5341 GB, free: 11.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.2759, allocations: 8.625 kB / 0.5341 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.2761, allocations: 20.64 kB / 0.5341 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.2762, allocations: 174.7 kB / 0.5343 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.454e-06/0.2763, allocations: 1.812 kB / 0.5343 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.2763, allocations: 1.812 kB / 0.5343 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001614/0.2764, allocations: 73.42 kB / 0.5343 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.2765, allocations: 1.281 kB / 0.5343 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.2765, allocations: 0 / 0.5343 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.2765, allocations: 0 / 0.5343 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.756e-05/0.2766, allocations: 23.36 kB / 0.5344 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000318/0.2769, allocations: 255.9 kB / 0.5346 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.803e-05/0.277, allocations: 35.16 kB / 0.5346 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.106e-05/0.2771, allocations: 22.98 kB / 0.5347 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.2771, allocations: 1.438 kB / 0.5347 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.2771, allocations: 32.25 kB / 0.5347 GB, free: 10.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 2.535e-06/0.2771, allocations: 0 / 0.5347 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002382/0.2774, allocations: 69.73 kB / 0.5348 GB, free: 10.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/0.2774, allocations: 78.48 kB / 0.5348 GB, free: 10.74 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.449e-05/0.2775, allocations: 112.8 kB / 0.5349 GB, free: 10.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.2775, allocations: 31.08 kB / 0.535 GB, free: 10.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.533e-05/0.2776, allocations: 81.52 kB / 0.535 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.2776, allocations: 13.22 kB / 0.5351 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.2776, allocations: 16.45 kB / 0.5351 GB, free: 10.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.2777, allocations: 316.2 kB / 0.5354 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.948e-05/0.2778, allocations: 14.89 kB / 0.5354 GB, free: 10.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.606e-05/0.2778, allocations: 23.34 kB / 0.5354 GB, free: 10.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.737e-05/0.2779, allocations: 31.72 kB / 0.5354 GB, free: 10.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2779, allocations: 0 / 0.5354 GB, free: 10.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001256/0.2781, allocations: 64.83 kB / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.2781, allocations: 5.5 kB / 0.5355 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2781, allocations: 4 kB / 0.5355 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.2781, allocations: 5.406 kB / 0.5355 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.303e-05/0.2782, allocations: 6.734 kB / 0.5355 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.2782, allocations: 0 / 0.5355 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.732e-05/0.2782, allocations: 5.5 kB / 0.5355 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.2783, allocations: 1.375 kB / 0.5355 GB, free: 10.05 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.913e-05/0.2783, allocations: 128.4 kB / 0.5357 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.2784, allocations: 2.75 kB / 0.5357 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.976e-05/0.2784, allocations: 4.906 kB / 0.5357 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2784, allocations: 4 kB / 0.5357 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2784, allocations: 3.938 kB / 0.5357 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.175e-06/0.2784, allocations: 1.375 kB / 0.5357 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001475/0.2786, allocations: 171.1 kB / 0.5358 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2786, allocations: 0 / 0.5358 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.826e-05/0.2786, allocations: 4.125 kB / 0.5358 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.2786, allocations: 3.984 kB / 0.5358 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.2786, allocations: 0 / 0.5358 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2786, allocations: 1.375 kB / 0.5358 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2787, allocations: 0 / 0.5358 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001533/0.2788, allocations: 157.3 kB / 0.536 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.2789, allocations: 82.47 kB / 0.5361 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.2789, allocations: 0 / 0.5361 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.447e-05/0.279, allocations: 5.5 kB / 0.5361 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.279, allocations: 8.109 kB / 0.5361 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.279, allocations: 4.312 kB / 0.5361 GB, free: 9.438 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.348e-05/0.2791, allocations: 98.11 kB / 0.5362 GB, free: 9.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2791, allocations: 0 / 0.5362 GB, free: 9.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002202/0.2793, allocations: 6.875 kB / 0.5362 GB, free: 9.348 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 7.566e-05/0.2794, allocations: 90.25 kB / 0.5363 GB, free: 9.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001461/0.2795, allocations: 32.47 kB / 0.5363 GB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2795, allocations: 1.375 kB / 0.5363 GB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.713e-05/0.2796, allocations: 12.25 kB / 0.5363 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.2798, allocations: 11.56 kB / 0.5363 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000256/0.2801, allocations: 150.4 kB / 0.5365 GB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000198/0.2803, allocations: 0.6796 MB / 0.5371 GB, free: 8.379 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.089e-05/0.2803, allocations: 16.8 kB / 0.5372 GB, free: 8.363 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2803, allocations: 0 / 0.5372 GB, free: 8.363 MB / 398.1 MB Notification: Performance of Templates: time 0.001815/0.2821, allocations: 0.6669 MB / 0.5378 GB, free: 8.031 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