Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") [: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.001226/0.001226, allocations: 187.8 kB / 7.845 MB, free: 2.359 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.376/1.376, allocations: 205.2 MB / 213.4 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.0009849/0.0009849, allocations: 88.77 kB / 261.5 MB, free: 13.55 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.07598/0.07598, allocations: 12.6 MB / 322 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.675e-06/8.607e-06, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09606/0.09609, allocations: 50.37 MB / 428.8 MB, free: 25.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2793/0.3755, allocations: 81.04 MB / 0.4979 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.3758, allocations: 82.25 kB / 0.4979 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01673/0.3925, allocations: 6.055 MB / 0.5038 GB, free: 10.79 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.3926, allocations: 3.781 kB / 0.5038 GB, free: 10.79 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.0005269/0.3931, allocations: 0.4906 MB / 0.5043 GB, free: 10.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.3932, allocations: 7.688 kB / 0.5043 GB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.373e-05/0.3932, allocations: 23.41 kB / 0.5044 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/0.3936, allocations: 295 kB / 0.5046 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.3937, allocations: 0 / 0.5046 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.3937, allocations: 3.844 kB / 0.5046 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001125/0.3938, allocations: 39.73 kB / 0.5047 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.3941, allocations: 139.8 kB / 0.5048 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3941, allocations: 11.84 kB / 0.5048 GB, free: 9.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.3941, allocations: 3.984 kB / 0.5048 GB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.3941, allocations: 0 / 0.5048 GB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004384/0.3946, allocations: 367.6 kB / 0.5052 GB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.3947, allocations: 109.4 kB / 0.5053 GB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.97e-05/0.3948, allocations: 48.27 kB / 0.5053 GB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.3948, allocations: 7.891 kB / 0.5053 GB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.141e-05/0.3949, allocations: 76.66 kB / 0.5054 GB, free: 9.453 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.3949, allocations: 0 / 0.5054 GB, free: 9.453 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002225/0.3951, allocations: 111.2 kB / 0.5055 GB, free: 9.395 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/0.3952, allocations: 162.2 kB / 0.5057 GB, free: 9.203 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.3955, allocations: 286 kB / 0.5059 GB, free: 9.078 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.3955, allocations: 25.7 kB / 0.506 GB, free: 9.047 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.3955, allocations: 102 kB / 0.5061 GB, free: 8.957 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.3956, allocations: 23.06 kB / 0.5061 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-06/0.3956, allocations: 0 / 0.5061 GB, free: 8.941 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.578e-05/0.3956, allocations: 331.1 kB / 0.5064 GB, free: 8.621 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.668e-05/0.3957, allocations: 24.41 kB / 0.5064 GB, free: 8.621 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.642e-05/0.3958, allocations: 89.66 kB / 0.5065 GB, free: 8.547 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.824e-05/0.3958, allocations: 28.36 kB / 0.5065 GB, free: 8.539 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3958, allocations: 7.625 kB / 0.5065 GB, free: 8.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001529/0.396, allocations: 115.5 kB / 0.5067 GB, free: 8.477 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.396, allocations: 3.875 kB / 0.5067 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.396, allocations: 0 / 0.5067 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.396, allocations: 3.844 kB / 0.5067 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3961, allocations: 23.3 kB / 0.5067 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3962, allocations: 0 / 0.5067 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.779e-05/0.3962, allocations: 7.781 kB / 0.5067 GB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-06/0.3963, allocations: 3.969 kB / 0.5067 GB, free: 8.465 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,subSample.y,subSample.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.493e-05/0.3963, allocations: 113.9 kB / 0.5068 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.711e-05/0.3964, allocations: 67.75 kB / 0.5069 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001872/0.3966, allocations: 105.2 kB / 0.507 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3966, allocations: 0 / 0.507 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.882e-06/0.3966, allocations: 7.688 kB / 0.507 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3966, allocations: 0 / 0.507 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/0.3968, allocations: 214.3 kB / 0.5072 GB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.3968, allocations: 7.656 kB / 0.5072 GB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.821e-05/0.3969, allocations: 15.14 kB / 0.5072 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3969, allocations: 3.688 kB / 0.5072 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.3969, allocations: 7.812 kB / 0.5072 GB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.3969, allocations: 7.703 kB / 0.5072 GB, free: 8.039 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3969, allocations: 3.984 kB / 0.5072 GB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001673/0.3971, allocations: 183.5 kB / 0.5074 GB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.356e-05/0.3972, allocations: 122.1 kB / 0.5075 GB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.3972, allocations: 3.922 kB / 0.5075 GB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.424e-05/0.3973, allocations: 7.969 kB / 0.5075 GB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.474e-05/0.3974, allocations: 7.812 kB / 0.5075 GB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.3974, allocations: 7.109 kB / 0.5075 GB, free: 7.766 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001867/0.3976, allocations: 227 kB / 0.5078 GB, free: 7.672 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002757/0.3979, allocations: 58.41 kB / 0.5078 GB, free: 7.652 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,subSample.y,sample.y,subSample.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.000653/0.3985, allocations: 317.6 kB / 0.5081 GB, free: 7.414 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001863/0.3987, allocations: 79.44 kB / 0.5082 GB, free: 7.402 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3987, allocations: 3.938 kB / 0.5082 GB, free: 7.398 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.524e-05/0.3988, allocations: 29.39 kB / 0.5082 GB, free: 7.395 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.3991, allocations: 49.88 kB / 0.5083 GB, free: 7.383 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000486/0.3996, allocations: 271.8 kB / 0.5085 GB, free: 7.234 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/0.3999, allocations: 0.7752 MB / 0.5093 GB, free: 6.496 MB / 330.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3999, allocations: 3.938 kB / 0.5093 GB, free: 6.492 MB / 330.7 MB Notification: Performance of Templates: time 0.006804/0.4067, allocations: 2.556 MB / 0.5118 GB, free: 5.199 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches