Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001627/0.001627, allocations: 176.2 kB / 8.19 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.662/1.662, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001268/0.001267, allocations: 98.48 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09424/0.09424, allocations: 12.59 MB / 322.4 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.845e-06/7.965e-06, allocations: 0 / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08171/0.08175, allocations: 50.38 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2824/0.3642, allocations: 77.73 MB / 0.4946 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.3645, allocations: 78.78 kB / 0.4947 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005835/0.3704, allocations: 1.172 MB / 0.4958 GB, free: 11.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.3704, allocations: 3.938 kB / 0.4958 GB, free: 11.63 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.0003883/0.3708, allocations: 358.2 kB / 0.4962 GB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3709, allocations: 7.656 kB / 0.4962 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.826e-05/0.371, allocations: 22.75 kB / 0.4962 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.3712, allocations: 190.4 kB / 0.4964 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.3712, allocations: 5.109 kB / 0.4964 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.3712, allocations: 0 / 0.4964 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001101/0.3713, allocations: 15.03 kB / 0.4964 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002464/0.3716, allocations: 122 kB / 0.4965 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3716, allocations: 3.906 kB / 0.4965 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.3717, allocations: 1.406 kB / 0.4965 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3717, allocations: 3.875 kB / 0.4965 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004472/0.3721, allocations: 332.3 kB / 0.4968 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001918/0.3723, allocations: 150.2 kB / 0.497 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.491e-05/0.3724, allocations: 34.73 kB / 0.497 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.794e-05/0.3725, allocations: 4 kB / 0.497 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.708e-05/0.3725, allocations: 34.16 kB / 0.497 GB, free: 10.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.785e-06/0.3725, allocations: 0 / 0.497 GB, free: 10.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002509/0.3728, allocations: 64.03 kB / 0.4971 GB, free: 10.37 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.479e-05/0.3728, allocations: 111.4 kB / 0.4972 GB, free: 10.24 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.373, allocations: 124.6 kB / 0.4973 GB, free: 10.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.373, allocations: 29.77 kB / 0.4974 GB, free: 10.11 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.01e-05/0.373, allocations: 150.8 kB / 0.4975 GB, free: 9.957 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.3731, allocations: 8.906 kB / 0.4975 GB, free: 9.953 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-06/0.3731, allocations: 0 / 0.4975 GB, free: 9.953 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.698e-05/0.3731, allocations: 315.3 kB / 0.4978 GB, free: 9.641 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.109e-05/0.3732, allocations: 3.906 kB / 0.4978 GB, free: 9.641 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.731e-05/0.3732, allocations: 41.22 kB / 0.4979 GB, free: 9.602 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.886e-05/0.3733, allocations: 17.14 kB / 0.4979 GB, free: 9.598 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3733, allocations: 0 / 0.4979 GB, free: 9.598 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001559/0.3735, allocations: 76.61 kB / 0.4979 GB, free: 9.551 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.3735, allocations: 3.719 kB / 0.498 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3735, allocations: 3.75 kB / 0.498 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.3735, allocations: 128 / 0.498 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.3737, allocations: 17.97 kB / 0.498 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.3737, allocations: 1.125 kB / 0.498 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.208e-05/0.3738, allocations: 7.781 kB / 0.498 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.3738, allocations: 9.047 kB / 0.498 GB, free: 9.539 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 5.383e-05/0.3739, allocations: 33.39 kB / 0.498 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.374, allocations: 54.58 kB / 0.4981 GB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.929e-05/0.3741, allocations: 13.44 kB / 0.4981 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3741, allocations: 7.984 kB / 0.4981 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3741, allocations: 0 / 0.4981 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.3741, allocations: 3.812 kB / 0.4981 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002454/0.3744, allocations: 153.9 kB / 0.4982 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3744, allocations: 3.875 kB / 0.4982 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.3745, allocations: 10.56 kB / 0.4983 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.3745, allocations: 0 / 0.4983 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.3746, allocations: 3.906 kB / 0.4983 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.3746, allocations: 5.266 kB / 0.4983 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.3746, allocations: 0.7812 kB / 0.4983 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001883/0.3748, allocations: 273.5 kB / 0.4985 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.316e-05/0.3749, allocations: 97.12 kB / 0.4986 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/0.3749, allocations: 0 / 0.4986 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.3751, allocations: 7.688 kB / 0.4986 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.3751, allocations: 1.594 kB / 0.4986 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.3752, allocations: 3.969 kB / 0.4986 GB, free: 8.922 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.965e-05/0.3753, allocations: 107.7 kB / 0.4987 GB, free: 8.848 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000335/0.3756, allocations: 7.656 kB / 0.4987 GB, free: 8.848 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.0001109/0.3757, allocations: 92.34 kB / 0.4988 GB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001418/0.3759, allocations: 30.95 kB / 0.4989 GB, free: 8.758 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3759, allocations: 5.281 kB / 0.4989 GB, free: 8.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.978e-05/0.3759, allocations: 12.55 kB / 0.4989 GB, free: 8.754 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004171/0.3764, allocations: 23.55 kB / 0.4989 GB, free: 8.746 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004145/0.3768, allocations: 143.8 kB / 0.499 GB, free: 8.617 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.377, allocations: 0.7112 MB / 0.4997 GB, free: 7.914 MB / 330.7 MB Notification: Performance of SimCode: time 9.52e-07/0.377, allocations: 4.125 kB / 0.4997 GB, free: 7.91 MB / 330.7 MB Notification: Performance of Templates: time 0.002934/0.38, allocations: 0.8474 MB / 0.5006 GB, free: 7.863 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches