Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001465/0.001465, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.216/2.216, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001602/0.001602, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3588/0.3588, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.073e-05/4.106e-05, allocations: 4 kB / 425.3 MB, free: 23.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1512, allocations: 58.86 MB / 484.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4672/0.6185, allocations: 85.05 MB / 0.5558 GB, free: 2.582 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.6187, allocations: 62.78 kB / 0.5559 GB, free: 2.551 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003416/0.6222, allocations: 0.9268 MB / 0.5568 GB, free: 1.719 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.6222, allocations: 3.938 kB / 0.5568 GB, free: 1.715 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.6222, allocations: 8 kB / 0.5568 GB, free: 1.707 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.000338/0.6226, allocations: 337.4 kB / 0.5571 GB, free: 1.336 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.6226, allocations: 8.031 kB / 0.5571 GB, free: 1.328 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.6227, allocations: 5.562 kB / 0.5571 GB, free: 1.324 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.612e-05/0.6228, allocations: 182.2 kB / 0.5573 GB, free: 1.109 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.6228, allocations: 0 / 0.5573 GB, free: 1.109 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.6228, allocations: 4 kB / 0.5573 GB, free: 1.105 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.6229, allocations: 53.66 kB / 0.5574 GB, free: 1.047 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.623, allocations: 0 / 0.5574 GB, free: 1.047 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.623, allocations: 0 / 0.5574 GB, free: 1.047 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.623, allocations: 4 kB / 0.5574 GB, free: 1.043 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.944e-05/0.6231, allocations: 11.19 kB / 0.5574 GB, free: 1.035 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003693/0.6235, allocations: 266.8 kB / 0.5576 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.771e-05/0.6235, allocations: 25.83 kB / 0.5577 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.24e-05/0.6236, allocations: 12.36 kB / 0.5577 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.6236, allocations: 0 / 0.5577 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.6236, allocations: 34.56 kB / 0.5577 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.383e-06/0.6236, allocations: 0 / 0.5577 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001656/0.6238, allocations: 52.44 kB / 0.5578 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.6239, allocations: 77.11 kB / 0.5578 GB, free: 0.5039 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.477e-05/0.6239, allocations: 104.2 kB / 0.5579 GB, free: 408 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.624, allocations: 25.7 kB / 0.558 GB, free: 376 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.998e-05/0.624, allocations: 162 kB / 0.5581 GB, free: 216 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.471e-05/0.624, allocations: 0 / 0.5581 GB, free: 216 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-06/0.6241, allocations: 4 kB / 0.5581 GB, free: 212 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.747e-05/0.6242, allocations: 314.8 kB / 0.5584 GB, free: 15.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.673e-05/0.6242, allocations: 11.41 kB / 0.5584 GB, free: 15.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.962e-05/0.6243, allocations: 24.34 kB / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.609e-05/0.6243, allocations: 8.062 kB / 0.5585 GB, free: 15.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.6243, allocations: 0 / 0.5585 GB, free: 15.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001206/0.6245, allocations: 51.95 kB / 0.5585 GB, free: 15.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.6245, allocations: 10.72 kB / 0.5585 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.6245, allocations: 0 / 0.5585 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.6245, allocations: 0 / 0.5585 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.189e-05/0.6246, allocations: 7.984 kB / 0.5585 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.6246, allocations: 4.906 kB / 0.5585 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.893e-05/0.6248, allocations: 11.98 kB / 0.5585 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.6248, allocations: 4 kB / 0.5586 GB, free: 15.77 MB / 378.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 8.244e-05/0.6249, allocations: 104.9 kB / 0.5587 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.673e-05/0.6249, allocations: 7.906 kB / 0.5587 GB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.021e-05/0.625, allocations: 6.781 kB / 0.5587 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.625, allocations: 3.938 kB / 0.5587 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.625, allocations: 8 kB / 0.5587 GB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.625, allocations: 0 / 0.5587 GB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000198/0.6252, allocations: 168.9 kB / 0.5588 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.6252, allocations: 0 / 0.5588 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.195e-05/0.6253, allocations: 7.984 kB / 0.5588 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.6253, allocations: 0 / 0.5588 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.6253, allocations: 0 / 0.5588 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.6253, allocations: 0 / 0.5588 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.6253, allocations: 3.938 kB / 0.5588 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001542/0.6255, allocations: 149.1 kB / 0.559 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.091e-05/0.6256, allocations: 85.02 kB / 0.5591 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.6256, allocations: 0 / 0.5591 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.6258, allocations: 11.98 kB / 0.5591 GB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.6258, allocations: 7.984 kB / 0.5591 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.6258, allocations: 0 / 0.5591 GB, free: 15.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.079e-05/0.6259, allocations: 87.22 kB / 0.5592 GB, free: 15.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6259, allocations: 4.031 kB / 0.5592 GB, free: 15.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002678/0.6262, allocations: 4 kB / 0.5592 GB, free: 15.05 MB / 378.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 0.0001369/0.6264, allocations: 95.23 kB / 0.5593 GB, free: 14.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001221/0.6265, allocations: 26.67 kB / 0.5593 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.6265, allocations: 4 kB / 0.5593 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.905e-05/0.6266, allocations: 7 kB / 0.5593 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001614/0.6267, allocations: 3.953 kB / 0.5593 GB, free: 14.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002613/0.627, allocations: 93.88 kB / 0.5594 GB, free: 14.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.6273, allocations: 0.6809 MB / 0.5601 GB, free: 14.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.84e-05/0.6274, allocations: 18.67 kB / 0.5601 GB, free: 14.08 MB / 378.7 MB Notification: Performance of SimCode: time 9.31e-07/0.6274, allocations: 0 / 0.5601 GB, free: 14.08 MB / 378.7 MB Notification: Performance of Templates: time 0.002408/0.6298, allocations: 0.6237 MB / 0.5607 GB, free: 13.47 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches