Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001279/0.001279, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.56/1.56, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000829/0.0008289, allocations: 82.62 kB / 261.7 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1974/0.1974, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.388e-05/1.391e-05, allocations: 0 / 418.2 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 58.85 MB / 477.1 MB, free: 1.652 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3852/0.4936, allocations: 84.38 MB / 0.5483 GB, free: 9.074 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.4938, allocations: 63.95 kB / 0.5484 GB, free: 9.074 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002401/0.4962, allocations: 0.9344 MB / 0.5493 GB, free: 8.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4963, allocations: 0 / 0.5493 GB, free: 8.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.4963, allocations: 0 / 0.5493 GB, free: 8.73 MB / 362.7 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.0002662/0.4966, allocations: 339.6 kB / 0.5496 GB, free: 8.383 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4966, allocations: 11.69 kB / 0.5496 GB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.813e-05/0.4966, allocations: 9.734 kB / 0.5496 GB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.4968, allocations: 178.2 kB / 0.5498 GB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.4968, allocations: 0 / 0.5498 GB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.4968, allocations: 0 / 0.5498 GB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.468e-05/0.4969, allocations: 11.31 kB / 0.5498 GB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.809e-05/0.497, allocations: 61.03 kB / 0.5499 GB, free: 8.117 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.497, allocations: 0 / 0.5499 GB, free: 8.117 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.497, allocations: 0 / 0.5499 GB, free: 8.117 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.497, allocations: 0 / 0.5499 GB, free: 8.117 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003443/0.4974, allocations: 239.8 kB / 0.5501 GB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.309e-05/0.4974, allocations: 29.48 kB / 0.5501 GB, free: 7.855 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.265e-05/0.4975, allocations: 12.02 kB / 0.5501 GB, free: 7.848 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.4975, allocations: 0 / 0.5501 GB, free: 7.848 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.4975, allocations: 34.31 kB / 0.5502 GB, free: 7.809 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.4975, allocations: 3.938 kB / 0.5502 GB, free: 7.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.00015/0.4977, allocations: 42.55 kB / 0.5502 GB, free: 7.773 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.804e-05/0.4977, allocations: 77.11 kB / 0.5503 GB, free: 7.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.226e-05/0.4978, allocations: 99.67 kB / 0.5504 GB, free: 7.586 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.4978, allocations: 29.2 kB / 0.5504 GB, free: 7.555 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.279e-05/0.4978, allocations: 90.91 kB / 0.5505 GB, free: 7.469 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.292e-05/0.4978, allocations: 3.812 kB / 0.5505 GB, free: 7.469 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-06/0.4979, allocations: 0 / 0.5505 GB, free: 7.469 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.274e-05/0.4979, allocations: 314.8 kB / 0.5508 GB, free: 7.152 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.712e-05/0.4979, allocations: 17.94 kB / 0.5508 GB, free: 7.152 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.924e-05/0.498, allocations: 17.38 kB / 0.5508 GB, free: 7.137 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.765e-05/0.498, allocations: 7.75 kB / 0.5509 GB, free: 7.133 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.498, allocations: 0 / 0.5509 GB, free: 7.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.278e-05/0.4981, allocations: 54.36 kB / 0.5509 GB, free: 7.094 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.4981, allocations: 3.906 kB / 0.5509 GB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.4981, allocations: 3.812 kB / 0.5509 GB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.4981, allocations: 0 / 0.5509 GB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.098e-05/0.4982, allocations: 6.766 kB / 0.5509 GB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.4982, allocations: 320 / 0.5509 GB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.723e-05/0.4983, allocations: 15.92 kB / 0.5509 GB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.4983, allocations: 0 / 0.5509 GB, free: 7.09 MB / 362.7 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 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.704e-05/0.4983, allocations: 108.8 kB / 0.551 GB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.4984, allocations: 0 / 0.551 GB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.478e-05/0.4984, allocations: 10.25 kB / 0.551 GB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.4984, allocations: 0 / 0.551 GB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.4984, allocations: 2.578 kB / 0.551 GB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.4984, allocations: 3.938 kB / 0.5511 GB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.4985, allocations: 138.8 kB / 0.5512 GB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4985, allocations: 11.8 kB / 0.5512 GB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.524e-05/0.4986, allocations: 6.297 kB / 0.5512 GB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.4986, allocations: 0 / 0.5512 GB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.4986, allocations: 144 / 0.5512 GB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.4986, allocations: 7.359 kB / 0.5512 GB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4986, allocations: 0 / 0.5512 GB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.71e-05/0.4987, allocations: 148.3 kB / 0.5513 GB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.888e-05/0.4987, allocations: 85.09 kB / 0.5514 GB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.4987, allocations: 7.156 kB / 0.5514 GB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.094e-05/0.4988, allocations: 10.22 kB / 0.5514 GB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.4989, allocations: 9.297 kB / 0.5515 GB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.4989, allocations: 0 / 0.5515 GB, free: 6.562 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.377e-05/0.4989, allocations: 83.19 kB / 0.5515 GB, free: 6.488 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4989, allocations: 3.938 kB / 0.5515 GB, free: 6.484 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001953/0.4991, allocations: 7.406 kB / 0.5515 GB, free: 6.484 MB / 362.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.604e-05/0.4992, allocations: 97.58 kB / 0.5516 GB, free: 6.391 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.876e-05/0.4993, allocations: 14.41 kB / 0.5517 GB, free: 6.391 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4993, allocations: 3.938 kB / 0.5517 GB, free: 6.387 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.911e-05/0.4993, allocations: 7.312 kB / 0.5517 GB, free: 6.387 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.4995, allocations: 3.781 kB / 0.5517 GB, free: 6.387 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001809/0.4997, allocations: 68.41 kB / 0.5517 GB, free: 6.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.4998, allocations: 0.6897 MB / 0.5524 GB, free: 5.617 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.271e-05/0.4998, allocations: 0 / 0.5524 GB, free: 5.617 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.539e-05/0.4998, allocations: 7.438 kB / 0.5524 GB, free: 5.609 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4998, allocations: 0 / 0.5524 GB, free: 5.609 MB / 362.7 MB Notification: Performance of Templates: time 0.001866/0.5017, allocations: 452.8 kB / 0.5528 GB, free: 5.266 MB / 362.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches