Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.001693/0.001694, allocations: 189.9 kB / 8.199 MB, free: 2.168 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.823/1.823, 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.001297/0.001296, allocations: 92.23 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.09931/0.09932, allocations: 12.58 MB / 322.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.366e-06/8.516e-06, allocations: 0 / 378.4 MB, free: 76.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08748/0.08751, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3013/0.3889, allocations: 81.01 MB / 0.4978 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.3892, allocations: 82.02 kB / 0.4979 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02306/0.4123, allocations: 5.386 MB / 0.5031 GB, free: 11.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.784e-05/0.4124, allocations: 7.844 kB / 0.5031 GB, free: 11.11 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.0006009/0.413, allocations: 468.5 kB / 0.5036 GB, free: 10.65 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.4131, allocations: 15.58 kB / 0.5036 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.111e-05/0.4131, allocations: 27.31 kB / 0.5036 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004912/0.4136, allocations: 255 kB / 0.5039 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.4137, allocations: 3.906 kB / 0.5039 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.519e-05/0.4137, allocations: 3.812 kB / 0.5039 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001772/0.4139, allocations: 49.66 kB / 0.5039 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003059/0.4142, allocations: 134.9 kB / 0.5041 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.4143, allocations: 3.984 kB / 0.5041 GB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.4143, allocations: 0 / 0.5041 GB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.4143, allocations: 3.844 kB / 0.5041 GB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.4148, allocations: 335.4 kB / 0.5044 GB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.415, allocations: 101.8 kB / 0.5045 GB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.203e-05/0.4151, allocations: 41.53 kB / 0.5045 GB, free: 9.887 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.4152, allocations: 4 kB / 0.5045 GB, free: 9.883 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000112/0.4153, allocations: 70.09 kB / 0.5046 GB, free: 9.828 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 3.056e-06/0.4153, allocations: 0 / 0.5046 GB, free: 9.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002983/0.4156, allocations: 106.7 kB / 0.5047 GB, free: 9.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/0.4157, allocations: 132.4 kB / 0.5048 GB, free: 9.613 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/0.416, allocations: 235 kB / 0.5051 GB, free: 9.492 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.416, allocations: 29.55 kB / 0.5051 GB, free: 9.461 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.86e-05/0.4161, allocations: 154.5 kB / 0.5052 GB, free: 9.309 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.598e-05/0.4161, allocations: 11.56 kB / 0.5052 GB, free: 9.305 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.832e-06/0.4161, allocations: 0 / 0.5052 GB, free: 9.305 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.143e-05/0.4162, allocations: 318.7 kB / 0.5055 GB, free: 8.984 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.703e-05/0.4163, allocations: 18.88 kB / 0.5056 GB, free: 8.984 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.668e-05/0.4164, allocations: 68.86 kB / 0.5056 GB, free: 8.922 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.129e-05/0.4165, allocations: 26.61 kB / 0.5056 GB, free: 8.914 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.4165, allocations: 0 / 0.5056 GB, free: 8.914 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002003/0.4167, allocations: 95.33 kB / 0.5057 GB, free: 8.867 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.4167, allocations: 3.844 kB / 0.5057 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.4167, allocations: 3.844 kB / 0.5057 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.4167, allocations: 3.906 kB / 0.5058 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.4169, allocations: 19.11 kB / 0.5058 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.4169, allocations: 0 / 0.5058 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.035e-05/0.417, allocations: 3.844 kB / 0.5058 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.417, allocations: 7.5 kB / 0.5058 GB, free: 8.855 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 6.69e-05/0.4171, allocations: 42.11 kB / 0.5058 GB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.528e-05/0.4172, allocations: 60.41 kB / 0.5059 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002441/0.4175, allocations: 96.7 kB / 0.506 GB, free: 8.715 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.4175, allocations: 3.688 kB / 0.506 GB, free: 8.715 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.4175, allocations: 3.938 kB / 0.506 GB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.4175, allocations: 3.984 kB / 0.506 GB, free: 8.707 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.4177, allocations: 206 kB / 0.5062 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4177, allocations: 0 / 0.5062 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.487e-05/0.4178, allocations: 11.67 kB / 0.5062 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.4178, allocations: 7.875 kB / 0.5062 GB, free: 8.512 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/0.4179, allocations: 3.938 kB / 0.5062 GB, free: 8.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.4179, allocations: 7.625 kB / 0.5062 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.4179, allocations: 0 / 0.5062 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002395/0.4181, allocations: 166.4 kB / 0.5064 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.4183, allocations: 115.9 kB / 0.5065 GB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.714e-05/0.4183, allocations: 0 / 0.5065 GB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.4185, allocations: 7.797 kB / 0.5065 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.4185, allocations: 3.688 kB / 0.5065 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.4185, allocations: 7.531 kB / 0.5065 GB, free: 8.254 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002315/0.4188, allocations: 183 kB / 0.5067 GB, free: 8.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003344/0.4191, allocations: 34.39 kB / 0.5067 GB, free: 8.152 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.0008559/0.42, allocations: 334.9 kB / 0.507 GB, free: 7.898 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002397/0.4202, allocations: 65.23 kB / 0.5071 GB, free: 7.891 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4203, allocations: 0 / 0.5071 GB, free: 7.891 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.594e-05/0.4203, allocations: 26.23 kB / 0.5071 GB, free: 7.891 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005172/0.4209, allocations: 46.59 kB / 0.5072 GB, free: 7.879 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006483/0.4215, allocations: 265.2 kB / 0.5074 GB, free: 7.699 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003059/0.4219, allocations: 0.7527 MB / 0.5081 GB, free: 6.969 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4219, allocations: 0 / 0.5081 GB, free: 6.969 MB / 330.7 MB Notification: Performance of Templates: time 0.007266/0.4292, allocations: 2.637 MB / 0.5107 GB, free: 5.641 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches