Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [: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.001184/0.001184, allocations: 190.7 kB / 7.846 MB, free: 2.516 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.299/1.299, allocations: 205.2 MB / 213.4 MB, free: 13.84 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.0009219/0.0009217, allocations: 88.89 kB / 261.5 MB, free: 13.53 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.06933/0.06933, allocations: 12.59 MB / 322 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.516e-06/8.556e-06, allocations: 8 kB / 378.4 MB, free: 75.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08856/0.08858, allocations: 50.38 MB / 428.8 MB, free: 25.24 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2807/0.3693, allocations: 77.72 MB / 0.4946 GB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.3697, allocations: 77.42 kB / 0.4947 GB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.004158/0.3738, allocations: 1.172 MB / 0.4958 GB, free: 11.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.3739, allocations: 3.938 kB / 0.4958 GB, free: 11.59 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003068/0.3742, allocations: 358.6 kB / 0.4962 GB, free: 11.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.3742, allocations: 11.56 kB / 0.4962 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.933e-05/0.3743, allocations: 11.66 kB / 0.4962 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.3745, allocations: 191.9 kB / 0.4964 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.3745, allocations: 0 / 0.4964 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.452e-05/0.3745, allocations: 7.031 kB / 0.4964 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.223e-05/0.3746, allocations: 19.36 kB / 0.4964 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.3748, allocations: 117.5 kB / 0.4965 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3748, allocations: 3.906 kB / 0.4965 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.3748, allocations: 0 / 0.4965 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.3748, allocations: 3.938 kB / 0.4965 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003414/0.3752, allocations: 334.7 kB / 0.4969 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.3754, allocations: 154.8 kB / 0.497 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.424e-05/0.3754, allocations: 38.45 kB / 0.497 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.3754, allocations: 0 / 0.497 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.38e-05/0.3755, allocations: 35.3 kB / 0.4971 GB, free: 10.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.3755, allocations: 3.984 kB / 0.4971 GB, free: 10.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001935/0.3757, allocations: 64.16 kB / 0.4971 GB, free: 10.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/0.3757, allocations: 107.6 kB / 0.4972 GB, free: 10.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.785e-05/0.3758, allocations: 129.2 kB / 0.4974 GB, free: 10.1 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.548e-06/0.3758, allocations: 25.7 kB / 0.4974 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.372e-05/0.3759, allocations: 85.34 kB / 0.4975 GB, free: 9.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.184e-05/0.3759, allocations: 9.156 kB / 0.4975 GB, free: 9.977 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.3759, allocations: 0 / 0.4975 GB, free: 9.977 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.737e-05/0.376, allocations: 320.6 kB / 0.4978 GB, free: 9.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.117e-05/0.376, allocations: 11.38 kB / 0.4978 GB, free: 9.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.814e-05/0.3761, allocations: 44.8 kB / 0.4978 GB, free: 9.613 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.703e-05/0.3761, allocations: 9.312 kB / 0.4978 GB, free: 9.613 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3761, allocations: 0 / 0.4978 GB, free: 9.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.663e-05/0.3762, allocations: 77.3 kB / 0.4979 GB, free: 9.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.3762, allocations: 8.453 kB / 0.4979 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3762, allocations: 0 / 0.4979 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.3762, allocations: 3.781 kB / 0.4979 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.229e-05/0.3763, allocations: 14.2 kB / 0.4979 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.3764, allocations: 11.86 kB / 0.498 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.43e-05/0.3764, allocations: 8.562 kB / 0.498 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.3764, allocations: 0.6562 kB / 0.498 GB, free: 9.551 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: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 7.184e-05/0.3765, allocations: 113.3 kB / 0.4981 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.728e-05/0.3766, allocations: 51.42 kB / 0.4981 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.704e-05/0.3767, allocations: 13.69 kB / 0.4981 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3767, allocations: 3.844 kB / 0.4981 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.3767, allocations: 3.906 kB / 0.4981 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3767, allocations: 0 / 0.4981 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.3769, allocations: 151.4 kB / 0.4983 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3769, allocations: 0 / 0.4983 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.069e-05/0.377, allocations: 9.672 kB / 0.4983 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.377, allocations: 4.578 kB / 0.4983 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.377, allocations: 4.797 kB / 0.4983 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.377, allocations: 3.062 kB / 0.4983 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.377, allocations: 3.844 kB / 0.4983 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001631/0.3772, allocations: 270.2 kB / 0.4986 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.425e-05/0.3772, allocations: 96.94 kB / 0.4987 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.3773, allocations: 0.6562 kB / 0.4987 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.3774, allocations: 8.234 kB / 0.4987 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.048e-05/0.3774, allocations: 5.125 kB / 0.4987 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.3774, allocations: 0.75 kB / 0.4987 GB, free: 8.867 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.097e-05/0.3775, allocations: 101.7 kB / 0.4988 GB, free: 8.793 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002626/0.3778, allocations: 7.875 kB / 0.4988 GB, free: 8.793 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: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 0.0001228/0.3779, allocations: 95.5 kB / 0.4989 GB, free: 8.703 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001048/0.378, allocations: 32.11 kB / 0.4989 GB, free: 8.699 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.86e-06/0.378, allocations: 1.219 kB / 0.4989 GB, free: 8.699 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.917e-05/0.3781, allocations: 11.8 kB / 0.4989 GB, free: 8.699 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.3784, allocations: 25.34 kB / 0.4989 GB, free: 8.691 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000323/0.3787, allocations: 115.5 kB / 0.499 GB, free: 8.594 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002626/0.379, allocations: 0.7148 MB / 0.4997 GB, free: 7.887 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.379, allocations: 3.812 kB / 0.4997 GB, free: 7.887 MB / 330.7 MB Notification: Performance of Templates: time 0.002852/0.3819, allocations: 0.6131 MB / 0.5003 GB, free: 7.816 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches