Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.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.ClockSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample") [: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.001878/0.001878, allocations: 184.5 kB / 7.844 MB, free: 2.477 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.214/1.214, 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.000943/0.0009431, allocations: 78.36 kB / 261.4 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.06424/0.06424, allocations: 12.59 MB / 322 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.594e-06/7.624e-06, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08282/0.08284, allocations: 50.37 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2704/0.3533, allocations: 77.52 MB / 0.4944 GB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/0.3536, allocations: 75.84 kB / 0.4945 GB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.004868/0.3585, allocations: 1.653 MB / 0.4961 GB, free: 11.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.3585, allocations: 4 kB / 0.4961 GB, free: 11.72 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002663/0.3587, allocations: 349.6 kB / 0.4964 GB, free: 11.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.3588, allocations: 15.47 kB / 0.4964 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.379e-05/0.3588, allocations: 12.17 kB / 0.4965 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.359, allocations: 188 kB / 0.4966 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.359, allocations: 3.719 kB / 0.4966 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.3591, allocations: 0 / 0.4966 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.27e-05/0.3591, allocations: 20.12 kB / 0.4967 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001875/0.3593, allocations: 93.58 kB / 0.4968 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3594, allocations: 0 / 0.4968 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.3594, allocations: 0 / 0.4968 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.3594, allocations: 4.359 kB / 0.4968 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002841/0.3597, allocations: 246.4 kB / 0.497 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.529e-05/0.3597, allocations: 37.72 kB / 0.497 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.446e-05/0.3598, allocations: 21.97 kB / 0.497 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.3598, allocations: 0 / 0.497 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.3598, allocations: 31.08 kB / 0.4971 GB, free: 10.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3598, allocations: 0 / 0.4971 GB, free: 10.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001575/0.36, allocations: 51.47 kB / 0.4971 GB, free: 10.69 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.36, allocations: 81.05 kB / 0.4972 GB, free: 10.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.3601, allocations: 128.3 kB / 0.4973 GB, free: 10.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.3601, allocations: 26.31 kB / 0.4974 GB, free: 10.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.536e-05/0.3602, allocations: 85.45 kB / 0.4974 GB, free: 10.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.402e-05/0.3602, allocations: 3.375 kB / 0.4974 GB, free: 10.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.614e-06/0.3602, allocations: 0 / 0.4974 GB, free: 10.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.362e-05/0.3603, allocations: 320.9 kB / 0.4977 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.37e-05/0.3603, allocations: 2.938 kB / 0.4977 GB, free: 10.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.717e-05/0.3603, allocations: 13.95 kB / 0.4978 GB, free: 10.05 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.153e-05/0.3604, allocations: 8.891 kB / 0.4978 GB, free: 10.05 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3604, allocations: 0 / 0.4978 GB, free: 10.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.651e-05/0.3605, allocations: 51.64 kB / 0.4978 GB, free: 10 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3605, allocations: 3.906 kB / 0.4978 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3605, allocations: 4.125 kB / 0.4978 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.3605, allocations: 0.6562 kB / 0.4978 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.217e-05/0.3606, allocations: 9.078 kB / 0.4978 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3606, allocations: 0.5625 kB / 0.4978 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.218e-05/0.3607, allocations: 8.266 kB / 0.4978 GB, free: 9.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.3607, allocations: 11.89 kB / 0.4979 GB, free: 9.988 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 4.625e-05/0.3607, allocations: 101 kB / 0.4979 GB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.331e-05/0.3608, allocations: 46.67 kB / 0.498 GB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.731e-05/0.3608, allocations: 12.14 kB / 0.498 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3609, allocations: 4.547 kB / 0.498 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3609, allocations: 0 / 0.498 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3609, allocations: 0 / 0.498 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001247/0.361, allocations: 148.5 kB / 0.4981 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.361, allocations: 0 / 0.4981 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.015e-05/0.3611, allocations: 13.31 kB / 0.4982 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3611, allocations: 3.625 kB / 0.4982 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.3611, allocations: 4.734 kB / 0.4982 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3611, allocations: 0 / 0.4982 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3611, allocations: 0 / 0.4982 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.261e-05/0.3612, allocations: 159.3 kB / 0.4983 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.225e-05/0.3612, allocations: 89.14 kB / 0.4984 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.3613, allocations: 0 / 0.4984 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.3614, allocations: 12.88 kB / 0.4984 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.758e-05/0.3614, allocations: 0.75 kB / 0.4984 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.3614, allocations: 4.375 kB / 0.4984 GB, free: 9.398 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.111e-05/0.3615, allocations: 105 kB / 0.4985 GB, free: 9.324 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002147/0.3617, allocations: 3.844 kB / 0.4985 GB, free: 9.324 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 7.193e-05/0.3618, allocations: 99.25 kB / 0.4986 GB, free: 9.23 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 6.925e-05/0.3618, allocations: 16.48 kB / 0.4986 GB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.3618, allocations: 0 / 0.4986 GB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.43e-05/0.3619, allocations: 4.562 kB / 0.4986 GB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.3621, allocations: 9.859 kB / 0.4987 GB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002268/0.3623, allocations: 101.8 kB / 0.4987 GB, free: 9.133 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.3625, allocations: 0.7045 MB / 0.4994 GB, free: 8.426 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3625, allocations: 0 / 0.4994 GB, free: 8.426 MB / 330.7 MB Notification: Performance of Templates: time 0.002302/0.3648, allocations: 494 kB / 0.4999 GB, free: 8.375 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches