Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") [: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.002312/0.002312, allocations: 175.3 kB / 8.192 MB, free: 2.191 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.762/1.762, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.00186/0.00186, allocations: 104.3 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.09308/0.09308, allocations: 12.6 MB / 322.3 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.565e-06/7.654e-06, allocations: 0 / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08227/0.0823, allocations: 50.36 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2797/0.3621, allocations: 81.03 MB / 0.4978 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.3624, allocations: 84.55 kB / 0.4979 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02433/0.3867, allocations: 5.534 MB / 0.5033 GB, free: 11.04 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.034e-05/0.3868, allocations: 6.375 kB / 0.5033 GB, free: 11.04 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006329/0.3875, allocations: 498.1 kB / 0.5038 GB, free: 10.56 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.3875, allocations: 11.81 kB / 0.5038 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.01e-05/0.3876, allocations: 26.94 kB / 0.5038 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005834/0.3882, allocations: 289.6 kB / 0.5041 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.3882, allocations: 0 / 0.5041 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.65e-05/0.3883, allocations: 7.859 kB / 0.5041 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001475/0.3884, allocations: 34.16 kB / 0.5041 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.3888, allocations: 149.2 kB / 0.5043 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3888, allocations: 0 / 0.5043 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.3888, allocations: 3.844 kB / 0.5043 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.3888, allocations: 0 / 0.5043 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006374/0.3895, allocations: 374.7 kB / 0.5046 GB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001969/0.3897, allocations: 108.2 kB / 0.5047 GB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.46e-05/0.3898, allocations: 43.23 kB / 0.5048 GB, free: 9.773 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.3898, allocations: 11.58 kB / 0.5048 GB, free: 9.766 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001238/0.39, allocations: 72.2 kB / 0.5049 GB, free: 9.707 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.785e-06/0.39, allocations: 0 / 0.5049 GB, free: 9.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003367/0.3903, allocations: 108.9 kB / 0.505 GB, free: 9.652 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.3904, allocations: 161.8 kB / 0.5051 GB, free: 9.465 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004288/0.3908, allocations: 285.9 kB / 0.5054 GB, free: 9.336 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.3909, allocations: 29.52 kB / 0.5054 GB, free: 9.305 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.3909, allocations: 158.5 kB / 0.5056 GB, free: 9.148 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.391, allocations: 18.2 kB / 0.5056 GB, free: 9.137 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-06/0.391, allocations: 0 / 0.5056 GB, free: 9.137 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.449e-05/0.3911, allocations: 314 kB / 0.5059 GB, free: 8.824 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.387e-05/0.3911, allocations: 24.05 kB / 0.5059 GB, free: 8.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.3913, allocations: 86.83 kB / 0.506 GB, free: 8.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.894e-05/0.3914, allocations: 41.73 kB / 0.506 GB, free: 8.734 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3914, allocations: 3.906 kB / 0.506 GB, free: 8.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002316/0.3916, allocations: 93.77 kB / 0.5061 GB, free: 8.684 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.3916, allocations: 9.844 kB / 0.5061 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.3917, allocations: 0 / 0.5061 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3917, allocations: 7.844 kB / 0.5061 GB, free: 8.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.3919, allocations: 22.52 kB / 0.5062 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3919, allocations: 3.844 kB / 0.5062 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.392, allocations: 7.75 kB / 0.5062 GB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.3921, allocations: 3.938 kB / 0.5062 GB, free: 8.668 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.285e-05/0.3921, allocations: 42.69 kB / 0.5062 GB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.3923, allocations: 63.7 kB / 0.5063 GB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003029/0.3926, allocations: 109.3 kB / 0.5064 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3926, allocations: 0 / 0.5064 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.3926, allocations: 3.531 kB / 0.5064 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3926, allocations: 3.984 kB / 0.5064 GB, free: 8.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.3929, allocations: 230 kB / 0.5066 GB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3929, allocations: 0 / 0.5066 GB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.393, allocations: 19.41 kB / 0.5066 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.393, allocations: 3.844 kB / 0.5066 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.3931, allocations: 6.984 kB / 0.5066 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3931, allocations: 0 / 0.5066 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.3931, allocations: 7.75 kB / 0.5067 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002577/0.3934, allocations: 171.4 kB / 0.5068 GB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.3935, allocations: 124.1 kB / 0.5069 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.383e-05/0.3936, allocations: 0 / 0.5069 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.3937, allocations: 7.703 kB / 0.5069 GB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.125e-05/0.3938, allocations: 10.33 kB / 0.507 GB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.3938, allocations: 3.844 kB / 0.507 GB, free: 8.043 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003104/0.3941, allocations: 227.2 kB / 0.5072 GB, free: 7.949 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000377/0.3945, allocations: 52.8 kB / 0.5072 GB, free: 7.934 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008277/0.3954, allocations: 327.8 kB / 0.5075 GB, free: 7.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003014/0.3957, allocations: 77.12 kB / 0.5076 GB, free: 7.668 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3957, allocations: 3.844 kB / 0.5076 GB, free: 7.668 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.22e-05/0.3958, allocations: 25.52 kB / 0.5076 GB, free: 7.664 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005692/0.3964, allocations: 52.56 kB / 0.5077 GB, free: 7.652 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007497/0.3971, allocations: 317.7 kB / 0.508 GB, free: 7.461 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/0.3975, allocations: 0.7785 MB / 0.5088 GB, free: 6.719 MB / 330.7 MB Notification: Performance of SimCode: time 8.31e-07/0.3975, allocations: 0 / 0.5088 GB, free: 6.719 MB / 330.7 MB Notification: Performance of Templates: time 0.007309/0.4048, allocations: 2.94 MB / 0.5116 GB, free: 5.246 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches