Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") [: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.001096/0.001096, allocations: 187.6 kB / 7.847 MB, free: 2.469 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.292/1.292, allocations: 205.2 MB / 213.5 MB, free: 13.85 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.0008776/0.0008776, allocations: 92.45 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.06532/0.06532, allocations: 12.59 MB / 322 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.091e-06/6.131e-06, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08178/0.0818, allocations: 50.37 MB / 428.8 MB, free: 25.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2643/0.3461, allocations: 77.41 MB / 0.4943 GB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.3464, allocations: 79.75 kB / 0.4944 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003473/0.3499, allocations: 1.025 MB / 0.4954 GB, free: 11.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.3499, allocations: 3.938 kB / 0.4954 GB, free: 11.7 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002853/0.3502, allocations: 340.8 kB / 0.4957 GB, free: 11.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.3503, allocations: 8.391 kB / 0.4957 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.912e-05/0.3503, allocations: 11.75 kB / 0.4957 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.3505, allocations: 195.1 kB / 0.4959 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.3505, allocations: 3.844 kB / 0.4959 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.3505, allocations: 0.5625 kB / 0.4959 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.626e-05/0.3506, allocations: 11.94 kB / 0.4959 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001557/0.3508, allocations: 88.62 kB / 0.496 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.505e-06/0.3508, allocations: 4 kB / 0.496 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.3508, allocations: 0 / 0.496 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3508, allocations: 0 / 0.496 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003007/0.3511, allocations: 240.8 kB / 0.4963 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.054e-05/0.3512, allocations: 45.44 kB / 0.4963 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.88e-05/0.3512, allocations: 18.23 kB / 0.4963 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.3513, allocations: 0 / 0.4963 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.3513, allocations: 35.25 kB / 0.4963 GB, free: 10.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3513, allocations: 0 / 0.4963 GB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.00015/0.3514, allocations: 51.23 kB / 0.4964 GB, free: 10.67 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.3515, allocations: 84.98 kB / 0.4965 GB, free: 10.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.608e-05/0.3516, allocations: 120.2 kB / 0.4966 GB, free: 10.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.235e-06/0.3516, allocations: 25.7 kB / 0.4966 GB, free: 10.45 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.876e-05/0.3516, allocations: 85.72 kB / 0.4967 GB, free: 10.36 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.3517, allocations: 3.906 kB / 0.4967 GB, free: 10.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-06/0.3517, allocations: 3.844 kB / 0.4967 GB, free: 10.36 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.622e-05/0.3517, allocations: 316.4 kB / 0.497 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.325e-05/0.3517, allocations: 4 kB / 0.497 GB, free: 10.04 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.592e-05/0.3518, allocations: 17.86 kB / 0.497 GB, free: 10.03 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2e-05/0.3518, allocations: 4.594 kB / 0.497 GB, free: 10.03 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3518, allocations: 0 / 0.497 GB, free: 10.03 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.051e-05/0.3519, allocations: 51.11 kB / 0.4971 GB, free: 9.988 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.3519, allocations: 3.906 kB / 0.4971 GB, free: 9.988 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3519, allocations: 0.6094 kB / 0.4971 GB, free: 9.988 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3519, allocations: 4.125 kB / 0.4971 GB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.664e-05/0.352, allocations: 9.109 kB / 0.4971 GB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.352, allocations: 0.7031 kB / 0.4971 GB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.06e-05/0.3521, allocations: 4.5 kB / 0.4971 GB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.3521, allocations: 0.7031 kB / 0.4971 GB, free: 9.984 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 5.966e-05/0.3522, allocations: 104.9 kB / 0.4972 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.983e-05/0.3522, allocations: 46.84 kB / 0.4972 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.105e-05/0.3523, allocations: 20.56 kB / 0.4973 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.3523, allocations: 0 / 0.4973 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3523, allocations: 0 / 0.4973 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3523, allocations: 0.7031 kB / 0.4973 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.3525, allocations: 144.6 kB / 0.4974 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3525, allocations: 0 / 0.4974 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.901e-05/0.3525, allocations: 5.344 kB / 0.4974 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.3525, allocations: 4.422 kB / 0.4974 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.3525, allocations: 3.906 kB / 0.4974 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.3525, allocations: 0.7031 kB / 0.4974 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3526, allocations: 4 kB / 0.4974 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001181/0.3527, allocations: 156 kB / 0.4976 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.341e-05/0.3527, allocations: 96.38 kB / 0.4977 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.3528, allocations: 1.547 kB / 0.4977 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.041e-05/0.3529, allocations: 11.91 kB / 0.4977 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/0.3529, allocations: 4.922 kB / 0.4977 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-06/0.3529, allocations: 0 / 0.4977 GB, free: 9.387 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.892e-05/0.353, allocations: 106.6 kB / 0.4978 GB, free: 9.309 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002226/0.3532, allocations: 3.844 kB / 0.4978 GB, free: 9.309 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 9.591e-05/0.3533, allocations: 94.75 kB / 0.4979 GB, free: 9.219 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.832e-05/0.3534, allocations: 13.03 kB / 0.4979 GB, free: 9.219 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3534, allocations: 128 / 0.4979 GB, free: 9.219 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.509e-05/0.3534, allocations: 7.875 kB / 0.4979 GB, free: 9.215 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.3537, allocations: 17.27 kB / 0.4979 GB, free: 9.211 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002619/0.354, allocations: 85.33 kB / 0.498 GB, free: 9.133 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.3542, allocations: 0.7059 MB / 0.4987 GB, free: 8.426 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3542, allocations: 0 / 0.4987 GB, free: 8.426 MB / 330.7 MB Notification: Performance of Templates: time 0.002365/0.3565, allocations: 456 kB / 0.4991 GB, free: 8.371 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches