Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002165/0.002165, allocations: 173.1 kB / 8.19 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.71/1.71, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001326/0.001325, allocations: 93.75 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09638/0.09638, allocations: 12.58 MB / 322.3 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.518e-06/9.678e-06, allocations: 4 kB / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08131/0.08135, allocations: 50.36 MB / 428.7 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2861/0.3675, allocations: 78.8 MB / 0.4956 GB, free: 11.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.3678, allocations: 78.92 kB / 0.4957 GB, free: 11.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.009706/0.3776, allocations: 2.063 MB / 0.4977 GB, free: 11.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.259e-05/0.3776, allocations: 3.906 kB / 0.4977 GB, free: 11.43 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.000546/0.3782, allocations: 422.3 kB / 0.4981 GB, free: 11.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3783, allocations: 7.781 kB / 0.4981 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.814e-05/0.3783, allocations: 19.12 kB / 0.4982 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003725/0.3787, allocations: 238.5 kB / 0.4984 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.3788, allocations: 3.906 kB / 0.4984 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.504e-05/0.3788, allocations: 8.891 kB / 0.4984 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001698/0.379, allocations: 39.75 kB / 0.4984 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/0.3795, allocations: 246.4 kB / 0.4987 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.3795, allocations: 0 / 0.4987 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.3795, allocations: 3.812 kB / 0.4987 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3796, allocations: 4 kB / 0.4987 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005902/0.3802, allocations: 400.9 kB / 0.4991 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003577/0.3805, allocations: 251.9 kB / 0.4993 GB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.3808, allocations: 100.6 kB / 0.4994 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.3808, allocations: 5.188 kB / 0.4994 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.3808, allocations: 35.81 kB / 0.4994 GB, free: 10.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 2.806e-06/0.3809, allocations: 0 / 0.4994 GB, free: 10.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004156/0.3813, allocations: 130.8 kB / 0.4996 GB, free: 9.973 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.9e-05/0.3814, allocations: 189.2 kB / 0.4998 GB, free: 9.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.3816, allocations: 159.8 kB / 0.4999 GB, free: 9.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.3816, allocations: 25.7 kB / 0.4999 GB, free: 9.621 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.567e-05/0.3817, allocations: 154.9 kB / 0.5001 GB, free: 9.465 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.3817, allocations: 14.69 kB / 0.5001 GB, free: 9.461 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-06/0.3817, allocations: 4.094 kB / 0.5001 GB, free: 9.457 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.191e-05/0.3818, allocations: 324 kB / 0.5004 GB, free: 9.141 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.304e-05/0.3818, allocations: 13.02 kB / 0.5004 GB, free: 9.141 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.382, allocations: 130.6 kB / 0.5005 GB, free: 8.996 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.384e-05/0.3821, allocations: 42.67 kB / 0.5006 GB, free: 8.984 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3821, allocations: 0 / 0.5006 GB, free: 8.984 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000286/0.3824, allocations: 137.8 kB / 0.5007 GB, free: 8.926 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.3824, allocations: 3.906 kB / 0.5007 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.3824, allocations: 3.938 kB / 0.5007 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.426e-05/0.3824, allocations: 7.719 kB / 0.5007 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002613/0.3827, allocations: 39.64 kB / 0.5008 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.3827, allocations: 5.938 kB / 0.5008 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.3829, allocations: 16.94 kB / 0.5008 GB, free: 8.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.3829, allocations: 7.688 kB / 0.5008 GB, free: 8.914 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.877e-05/0.383, allocations: 45.3 kB / 0.5008 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002899/0.3833, allocations: 111.1 kB / 0.5009 GB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.38e-05/0.3834, allocations: 18.16 kB / 0.501 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.3834, allocations: 9.125 kB / 0.501 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.3835, allocations: 0 / 0.501 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3835, allocations: 7.906 kB / 0.501 GB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002977/0.3838, allocations: 190.5 kB / 0.5012 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3838, allocations: 0 / 0.5012 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.3841, allocations: 48.09 kB / 0.5012 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.375e-06/0.3841, allocations: 0 / 0.5012 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.3841, allocations: 9.016 kB / 0.5012 GB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.3842, allocations: 4 kB / 0.5012 GB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.3842, allocations: 3.812 kB / 0.5012 GB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003429/0.3845, allocations: 371.7 kB / 0.5016 GB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.3847, allocations: 106.6 kB / 0.5017 GB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.162e-05/0.3847, allocations: 3.906 kB / 0.5017 GB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.385, allocations: 10.61 kB / 0.5017 GB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.523e-05/0.385, allocations: 13.28 kB / 0.5017 GB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.3851, allocations: 3.906 kB / 0.5017 GB, free: 8.219 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001249/0.3852, allocations: 128.8 kB / 0.5018 GB, free: 8.141 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004187/0.3856, allocations: 19.12 kB / 0.5018 GB, free: 8.141 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.000117/0.3858, allocations: 100.1 kB / 0.5019 GB, free: 8.047 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002602/0.386, allocations: 86.86 kB / 0.502 GB, free: 8.035 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.386, allocations: 1.062 kB / 0.502 GB, free: 8.035 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.012e-05/0.3861, allocations: 11.56 kB / 0.502 GB, free: 8.035 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006679/0.3868, allocations: 80.08 kB / 0.5021 GB, free: 8.027 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006509/0.3874, allocations: 235.8 kB / 0.5023 GB, free: 7.859 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/0.3877, allocations: 0.7519 MB / 0.5031 GB, free: 7.156 MB / 330.7 MB Notification: Performance of SimCode: time 1.162e-06/0.3877, allocations: 0 / 0.5031 GB, free: 7.156 MB / 330.7 MB Notification: Performance of Templates: time 0.004888/0.3926, allocations: 1.785 MB / 0.5048 GB, free: 7.027 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches