Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") [: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.002386/0.002391, allocations: 169.8 kB / 8.185 MB, free: 2.133 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.788/1.788, allocations: 205.2 MB / 213.8 MB, free: 14 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.001269/0.001269, allocations: 91.48 kB / 261.8 MB, free: 13.63 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.09536/0.09536, allocations: 12.59 MB / 322.3 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.614e-06/7.775e-06, allocations: 0 / 378.4 MB, free: 76.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08409/0.08412, allocations: 50.37 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2888/0.3729, allocations: 78.81 MB / 0.4957 GB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.3733, allocations: 79.97 kB / 0.4957 GB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.009034/0.3823, allocations: 1.997 MB / 0.4977 GB, free: 11.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.195e-05/0.3824, allocations: 3.688 kB / 0.4977 GB, free: 11.5 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.0005395/0.3829, allocations: 418.1 kB / 0.4981 GB, free: 11.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.383, allocations: 7.844 kB / 0.4981 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.304e-05/0.3831, allocations: 15.5 kB / 0.4981 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.3834, allocations: 238.9 kB / 0.4983 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.3835, allocations: 3.812 kB / 0.4983 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.3835, allocations: 3.75 kB / 0.4983 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000172/0.3837, allocations: 50.09 kB / 0.4984 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004698/0.3841, allocations: 226.7 kB / 0.4986 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.3842, allocations: 3.938 kB / 0.4986 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.3842, allocations: 0 / 0.4986 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3842, allocations: 3.844 kB / 0.4986 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000557/0.3848, allocations: 408.8 kB / 0.499 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003499/0.3852, allocations: 253.7 kB / 0.4992 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.3853, allocations: 91.5 kB / 0.4993 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.718e-05/0.3854, allocations: 5.734 kB / 0.4993 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.3854, allocations: 42.34 kB / 0.4994 GB, free: 10.11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 2.485e-06/0.3854, allocations: 7.875 kB / 0.4994 GB, free: 10.1 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004214/0.3859, allocations: 119 kB / 0.4995 GB, free: 10.05 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/0.386, allocations: 196.8 kB / 0.4997 GB, free: 9.828 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.3862, allocations: 160.4 kB / 0.4998 GB, free: 9.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.3862, allocations: 25.7 kB / 0.4999 GB, free: 9.699 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.856e-05/0.3862, allocations: 150.6 kB / 0.5 GB, free: 9.551 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.3863, allocations: 17.91 kB / 0.5 GB, free: 9.543 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.704e-06/0.3863, allocations: 0 / 0.5 GB, free: 9.543 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.339e-05/0.3864, allocations: 323.1 kB / 0.5003 GB, free: 9.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.795e-05/0.3864, allocations: 19.44 kB / 0.5003 GB, free: 9.223 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.3865, allocations: 120.1 kB / 0.5005 GB, free: 9.082 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.549e-05/0.3866, allocations: 30.36 kB / 0.5005 GB, free: 9.078 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3866, allocations: 7.844 kB / 0.5005 GB, free: 9.074 MB / 330.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002651/0.3869, allocations: 122.1 kB / 0.5006 GB, free: 9.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3869, allocations: 10.09 kB / 0.5006 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.387, allocations: 3.781 kB / 0.5006 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.387, allocations: 3.906 kB / 0.5006 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002437/0.3872, allocations: 35.67 kB / 0.5007 GB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.3873, allocations: 6.875 kB / 0.5007 GB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.3874, allocations: 12.97 kB / 0.5007 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.3875, allocations: 11.56 kB / 0.5007 GB, free: 9.012 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.08e-05/0.3875, allocations: 41.42 kB / 0.5007 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002783/0.3878, allocations: 109.5 kB / 0.5008 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.945e-05/0.3879, allocations: 20.12 kB / 0.5009 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3879, allocations: 0 / 0.5009 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.388, allocations: 3.719 kB / 0.5009 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.388, allocations: 8.328 kB / 0.5009 GB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/0.3883, allocations: 184.4 kB / 0.501 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.3883, allocations: 8.031 kB / 0.5011 GB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000283/0.3886, allocations: 44.81 kB / 0.5011 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/0.3886, allocations: 4.453 kB / 0.5011 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.3886, allocations: 4.719 kB / 0.5011 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.3886, allocations: 0 / 0.5011 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.3887, allocations: 3.875 kB / 0.5011 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003364/0.389, allocations: 367.4 kB / 0.5015 GB, free: 8.434 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.3891, allocations: 114.1 kB / 0.5016 GB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.749e-05/0.3892, allocations: 3.938 kB / 0.5016 GB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002613/0.3894, allocations: 19.56 kB / 0.5016 GB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.069e-05/0.3895, allocations: 0 / 0.5016 GB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.3895, allocations: 9.016 kB / 0.5016 GB, free: 8.32 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001257/0.3897, allocations: 129.5 kB / 0.5017 GB, free: 8.246 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004409/0.3901, allocations: 15.06 kB / 0.5017 GB, free: 8.246 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 (17): * Single equations (assignments): 17 * 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.0001109/0.3902, allocations: 98.59 kB / 0.5018 GB, free: 8.152 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002425/0.3905, allocations: 87.48 kB / 0.5019 GB, free: 8.137 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3905, allocations: 0 / 0.5019 GB, free: 8.137 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.911e-05/0.3905, allocations: 5.734 kB / 0.5019 GB, free: 8.137 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006562/0.3912, allocations: 80.48 kB / 0.502 GB, free: 8.129 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.3929, allocations: 350.8 kB / 0.5023 GB, free: 7.957 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/0.3932, allocations: 0.7476 MB / 0.5031 GB, free: 7.246 MB / 330.7 MB Notification: Performance of SimCode: time 1.333e-06/0.3932, allocations: 0 / 0.5031 GB, free: 7.246 MB / 330.7 MB Notification: Performance of Templates: time 0.004627/0.3978, allocations: 1.737 MB / 0.5048 GB, free: 7.117 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches