Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") [: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.0009932/0.0009933, allocations: 186.8 kB / 7.841 MB, free: 2.496 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.209/1.209, allocations: 205.2 MB / 213.5 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.0009067/0.0009069, allocations: 87.3 kB / 261.5 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06595/0.06595, allocations: 12.59 MB / 322 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.277e-06/9.297e-06, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08978/0.08981, allocations: 50.37 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2886/0.3785, allocations: 81.11 MB / 0.4979 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.3787, allocations: 81.67 kB / 0.498 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01495/0.3937, allocations: 5.499 MB / 0.5034 GB, free: 10.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.448e-05/0.3938, allocations: 3.562 kB / 0.5034 GB, free: 10.91 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.00056/0.3943, allocations: 491.2 kB / 0.5038 GB, free: 10.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.3944, allocations: 11.41 kB / 0.5039 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.62e-05/0.3945, allocations: 23.5 kB / 0.5039 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003994/0.3949, allocations: 266.8 kB / 0.5041 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.3949, allocations: 7.75 kB / 0.5041 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.3949, allocations: 3.812 kB / 0.5041 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000115/0.3951, allocations: 39.48 kB / 0.5042 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002548/0.3953, allocations: 152.7 kB / 0.5043 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.3954, allocations: 7.891 kB / 0.5043 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.3954, allocations: 0 / 0.5043 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.3954, allocations: 3.812 kB / 0.5043 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000483/0.3959, allocations: 352.1 kB / 0.5047 GB, free: 9.754 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.396, allocations: 123.5 kB / 0.5048 GB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.209e-05/0.3961, allocations: 55.17 kB / 0.5048 GB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.3961, allocations: 3.594 kB / 0.5048 GB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.938e-05/0.3962, allocations: 75.98 kB / 0.5049 GB, free: 9.551 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.3962, allocations: 0 / 0.5049 GB, free: 9.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002337/0.3965, allocations: 110.9 kB / 0.505 GB, free: 9.496 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.3965, allocations: 158.1 kB / 0.5052 GB, free: 9.309 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002165/0.3968, allocations: 237.7 kB / 0.5054 GB, free: 9.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.3968, allocations: 25.7 kB / 0.5054 GB, free: 9.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.82e-05/0.3968, allocations: 101.9 kB / 0.5055 GB, free: 9.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.3969, allocations: 22.77 kB / 0.5055 GB, free: 9.055 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-06/0.3969, allocations: 0 / 0.5055 GB, free: 9.055 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.364e-05/0.397, allocations: 329 kB / 0.5059 GB, free: 8.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.968e-05/0.397, allocations: 21.16 kB / 0.5059 GB, free: 8.734 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.824e-05/0.3971, allocations: 81.31 kB / 0.506 GB, free: 8.656 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.647e-05/0.3971, allocations: 30.08 kB / 0.506 GB, free: 8.648 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3971, allocations: 0 / 0.506 GB, free: 8.648 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000166/0.3973, allocations: 116.2 kB / 0.5061 GB, free: 8.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.3973, allocations: 7.5 kB / 0.5061 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3974, allocations: 0 / 0.5061 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3974, allocations: 4.031 kB / 0.5061 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.73e-05/0.3975, allocations: 23.36 kB / 0.5061 GB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.3975, allocations: 0 / 0.5061 GB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.458e-05/0.3976, allocations: 11.56 kB / 0.5061 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.3976, allocations: 10.34 kB / 0.5061 GB, free: 8.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.606e-05/0.3977, allocations: 108.9 kB / 0.5063 GB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.873e-05/0.3978, allocations: 71.09 kB / 0.5063 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.3979, allocations: 103.2 kB / 0.5064 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.398, allocations: 3.844 kB / 0.5064 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.398, allocations: 0 / 0.5064 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.398, allocations: 3.969 kB / 0.5064 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.3981, allocations: 217.4 kB / 0.5066 GB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3981, allocations: 0 / 0.5066 GB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.734e-05/0.3982, allocations: 11.67 kB / 0.5066 GB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3982, allocations: 3.875 kB / 0.5066 GB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.3982, allocations: 0 / 0.5066 GB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.3982, allocations: 0 / 0.5066 GB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3982, allocations: 7.984 kB / 0.5067 GB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000193/0.3984, allocations: 196.7 kB / 0.5068 GB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.503e-05/0.3985, allocations: 110.9 kB / 0.507 GB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.744e-05/0.3986, allocations: 10.89 kB / 0.507 GB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.492e-05/0.3987, allocations: 7.75 kB / 0.507 GB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.777e-05/0.3987, allocations: 11.8 kB / 0.507 GB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.3987, allocations: 3.844 kB / 0.507 GB, free: 7.863 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001463/0.3989, allocations: 187.1 kB / 0.5072 GB, free: 7.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002689/0.3992, allocations: 38.75 kB / 0.5072 GB, free: 7.758 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.0006309/0.3998, allocations: 322.6 kB / 0.5075 GB, free: 7.508 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.4, allocations: 76.92 kB / 0.5076 GB, free: 7.496 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4, allocations: 0 / 0.5076 GB, free: 7.496 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.999e-05/0.4001, allocations: 25.41 kB / 0.5076 GB, free: 7.492 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.4005, allocations: 55.83 kB / 0.5077 GB, free: 7.484 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004791/0.4009, allocations: 244.6 kB / 0.5079 GB, free: 7.328 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002205/0.4012, allocations: 0.7671 MB / 0.5086 GB, free: 6.586 MB / 330.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4012, allocations: 0 / 0.5086 GB, free: 6.586 MB / 330.7 MB Notification: Performance of Templates: time 0.005785/0.407, allocations: 2.435 MB / 0.511 GB, free: 5.371 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.realToBoolean.threshold,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],time