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: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [: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.001253/0.001253, allocations: 187.9 kB / 7.802 MB, free: 2.488 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.297/1.297, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009171/0.0009171, allocations: 95.55 kB / 261.4 MB, free: 13.54 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.1982/0.1982, allocations: 43.49 MB / 352.8 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2228/0.421, allocations: 64.96 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.7834, allocations: 58.83 MB / 476.6 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.9161, allocations: 84.31 MB / 0.5478 GB, free: 14.62 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.9164, allocations: 63.47 kB / 0.5479 GB, free: 14.57 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.003074/0.9195, allocations: 0.9697 MB / 0.5488 GB, free: 13.56 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.9195, allocations: 12 kB / 0.5488 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.382e-05/0.9196, allocations: 7.891 kB / 0.5488 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.9198, allocations: 167 kB / 0.549 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.9198, allocations: 0 / 0.549 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.9198, allocations: 3.938 kB / 0.549 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.632e-05/0.9199, allocations: 16 kB / 0.549 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.92, allocations: 55.31 kB / 0.5491 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.92, allocations: 3.938 kB / 0.5491 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.92, allocations: 0 / 0.5491 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.9201, allocations: 0 / 0.5491 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004473/0.9205, allocations: 245.5 kB / 0.5493 GB, free: 12.97 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.501e-05/0.9206, allocations: 26.58 kB / 0.5493 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.112e-05/0.9206, allocations: 12.92 kB / 0.5493 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.9207, allocations: 3.906 kB / 0.5493 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.9207, allocations: 30.56 kB / 0.5494 GB, free: 12.88 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 3.046e-06/0.9207, allocations: 4 kB / 0.5494 GB, free: 12.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.000173/0.9209, allocations: 45.62 kB / 0.5494 GB, free: 12.82 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.9209, allocations: 81.11 kB / 0.5495 GB, free: 12.72 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.68e-05/0.921, allocations: 96.98 kB / 0.5496 GB, free: 12.62 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.9211, allocations: 29.7 kB / 0.5496 GB, free: 12.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.558e-05/0.9211, allocations: 84.14 kB / 0.5497 GB, free: 12.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.9211, allocations: 3.906 kB / 0.5497 GB, free: 12.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.9211, allocations: 0 / 0.5497 GB, free: 12.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.9213, allocations: 322.9 kB / 0.55 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.248e-05/0.9213, allocations: 7.984 kB / 0.55 GB, free: 12.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.809e-05/0.9213, allocations: 17.72 kB / 0.55 GB, free: 12.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.278e-05/0.9214, allocations: 8 kB / 0.55 GB, free: 12.13 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.9214, allocations: 0 / 0.55 GB, free: 12.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.175e-05/0.9215, allocations: 49.59 kB / 0.5501 GB, free: 12.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.9215, allocations: 7.938 kB / 0.5501 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.9215, allocations: 3.172 kB / 0.5501 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.9215, allocations: 4 kB / 0.5501 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.786e-05/0.9216, allocations: 8.031 kB / 0.5501 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.9216, allocations: 0 / 0.5501 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.823e-05/0.9217, allocations: 11.98 kB / 0.5501 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-06/0.9217, allocations: 0 / 0.5501 GB, free: 12.05 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 7.938e-05/0.9218, allocations: 110.3 kB / 0.5502 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.788e-05/0.9218, allocations: 4 kB / 0.5502 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.96e-05/0.9219, allocations: 15.61 kB / 0.5502 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.9219, allocations: 3.906 kB / 0.5502 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.9219, allocations: 0 / 0.5502 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.9219, allocations: 0 / 0.5502 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.9221, allocations: 138.2 kB / 0.5504 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.9221, allocations: 3.984 kB / 0.5504 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.434e-05/0.9221, allocations: 4 kB / 0.5504 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.9221, allocations: 0 / 0.5504 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.9221, allocations: 8.078 kB / 0.5504 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.9222, allocations: 4 kB / 0.5504 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.9222, allocations: 0 / 0.5504 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001464/0.9223, allocations: 143.4 kB / 0.5505 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000267/0.9226, allocations: 0.518 MB / 0.551 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-05/0.9226, allocations: 81.02 kB / 0.5511 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.9227, allocations: 0 / 0.5511 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.9228, allocations: 15.98 kB / 0.5511 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.9228, allocations: 3.984 kB / 0.5511 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-06/0.9229, allocations: 4 kB / 0.5511 GB, free: 10.91 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.937e-05/0.9229, allocations: 95.56 kB / 0.5512 GB, free: 10.81 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008435/0.9238, allocations: 4 kB / 0.5512 GB, free: 10.81 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 0.0001239/0.9239, allocations: 91.25 kB / 0.5513 GB, free: 10.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.924, allocations: 23.88 kB / 0.5513 GB, free: 10.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.924, allocations: 0 / 0.5513 GB, free: 10.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.789e-05/0.9241, allocations: 12 kB / 0.5514 GB, free: 10.67 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001782/0.9242, allocations: 7.703 kB / 0.5514 GB, free: 10.67 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002819/0.9245, allocations: 67.84 kB / 0.5514 GB, free: 10.58 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004064/0.9249, allocations: 0.6958 MB / 0.5521 GB, free: 9.855 MB / 394.7 MB Notification: Performance of SimCode: time 4.21e-07/0.925, allocations: 0 / 0.5521 GB, free: 9.855 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat