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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009106/0.0009107, allocations: 183.1 kB / 7.8 MB, free: 2.445 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.013/1.013, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.0007706/0.0007706, allocations: 87.48 kB / 261.4 MB, free: 13.56 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.1543/0.1543, allocations: 43.49 MB / 352.8 MB, free: 1.973 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.242e-06/6.262e-06, allocations: 0 / 417.7 MB, free: 40.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2134, allocations: 58.84 MB / 476.5 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09805/0.3115, allocations: 84.32 MB / 0.5477 GB, free: 14.66 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001417/0.3117, allocations: 63.97 kB / 0.5478 GB, free: 14.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.002202/0.3139, allocations: 0.6305 MB / 0.5484 GB, free: 13.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.3139, allocations: 0 / 0.5484 GB, free: 13.98 MB / 394.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.0002693/0.3142, allocations: 346.3 kB / 0.5487 GB, free: 13.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.3142, allocations: 15.97 kB / 0.5487 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.097e-05/0.3143, allocations: 3.906 kB / 0.5487 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.745e-05/0.3144, allocations: 167 kB / 0.5489 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.666e-06/0.3144, allocations: 0 / 0.5489 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.3144, allocations: 0 / 0.5489 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.941e-05/0.3145, allocations: 12 kB / 0.5489 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.574e-05/0.3146, allocations: 63.3 kB / 0.549 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.249e-06/0.3146, allocations: 3.938 kB / 0.549 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.3146, allocations: 0 / 0.549 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3146, allocations: 0 / 0.549 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002962/0.3149, allocations: 245.5 kB / 0.5492 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.649e-05/0.315, allocations: 30.58 kB / 0.5492 GB, free: 12.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.129e-05/0.315, allocations: 8.922 kB / 0.5492 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.315, allocations: 3.906 kB / 0.5492 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.315, allocations: 34.56 kB / 0.5493 GB, free: 12.91 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.315, allocations: 0 / 0.5493 GB, free: 12.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001272/0.3152, allocations: 45.62 kB / 0.5493 GB, free: 12.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.3152, allocations: 81.14 kB / 0.5494 GB, free: 12.76 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.46e-05/0.3153, allocations: 101 kB / 0.5495 GB, free: 12.65 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.3153, allocations: 33.7 kB / 0.5495 GB, free: 12.61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.719e-05/0.3153, allocations: 80.14 kB / 0.5496 GB, free: 12.53 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.554e-05/0.3154, allocations: 3.906 kB / 0.5496 GB, free: 12.53 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.3154, allocations: 0 / 0.5496 GB, free: 12.53 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.468e-05/0.3154, allocations: 318.8 kB / 0.5499 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.963e-05/0.3155, allocations: 7.984 kB / 0.5499 GB, free: 12.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.455e-05/0.3155, allocations: 21.72 kB / 0.5499 GB, free: 12.17 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.867e-05/0.3155, allocations: 8 kB / 0.55 GB, free: 12.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3155, allocations: 0 / 0.55 GB, free: 12.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.534e-05/0.3156, allocations: 56.7 kB / 0.55 GB, free: 12.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.856e-06/0.3156, allocations: 4 kB / 0.55 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.3156, allocations: 0 / 0.55 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.3156, allocations: 4 kB / 0.55 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.498e-05/0.3157, allocations: 4 kB / 0.55 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-06/0.3157, allocations: 0 / 0.55 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.252e-05/0.3158, allocations: 16.02 kB / 0.55 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-06/0.3158, allocations: 0 / 0.55 GB, free: 12.08 MB / 394.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 5.696e-05/0.3159, allocations: 110.3 kB / 0.5501 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.519e-05/0.3159, allocations: 0 / 0.5501 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.516e-05/0.3159, allocations: 11.61 kB / 0.5501 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.3159, allocations: 11.91 kB / 0.5502 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.3159, allocations: 0 / 0.5502 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3159, allocations: 0 / 0.5502 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.3161, allocations: 138.2 kB / 0.5503 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3161, allocations: 3.984 kB / 0.5503 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.957e-05/0.3161, allocations: 4 kB / 0.5503 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3161, allocations: 0 / 0.5503 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.3161, allocations: 4 kB / 0.5503 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.3161, allocations: 0 / 0.5503 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3162, allocations: 0 / 0.5503 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.815e-05/0.3162, allocations: 147.7 kB / 0.5504 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.946e-05/0.3163, allocations: 81.02 kB / 0.5505 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.3163, allocations: 0 / 0.5505 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.369e-05/0.3164, allocations: 11.98 kB / 0.5505 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.3164, allocations: 16.02 kB / 0.5505 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.3165, allocations: 0 / 0.5505 GB, free: 11.47 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.25e-05/0.3165, allocations: 91.25 kB / 0.5506 GB, free: 11.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002045/0.3167, allocations: 4 kB / 0.5506 GB, free: 11.38 MB / 394.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.105e-05/0.3168, allocations: 99.19 kB / 0.5507 GB, free: 11.27 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.617e-05/0.3169, allocations: 16 kB / 0.5507 GB, free: 11.25 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.3169, allocations: 0 / 0.5507 GB, free: 11.25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.174e-05/0.3169, allocations: 11.94 kB / 0.5508 GB, free: 11.24 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001192/0.317, allocations: 15.34 kB / 0.5508 GB, free: 11.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001839/0.3172, allocations: 63.78 kB / 0.5508 GB, free: 11.14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.3174, allocations: 0.696 MB / 0.5515 GB, free: 10.42 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3174, allocations: 0 / 0.5515 GB, free: 10.42 MB / 394.7 MB Notification: Performance of Templates: time 0.001855/0.3193, allocations: 0.5118 MB / 0.552 GB, free: 9.91 MB / 394.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