Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.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.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") [: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.002827/0.002833, allocations: 176.4 kB / 8.19 MB, free: 2.176 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.783/1.783, 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.001279/0.001279, allocations: 98.31 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.1235/0.1235, allocations: 12.6 MB / 322.4 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.905e-06/8.186e-06, allocations: 0 / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0863/0.08633, allocations: 50.38 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2948/0.3812, allocations: 77.03 MB / 0.4939 GB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.3815, allocations: 73.5 kB / 0.494 GB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.004306/0.3858, allocations: 0.9482 MB / 0.4949 GB, free: 11.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.3859, allocations: 3.906 kB / 0.4949 GB, free: 11.61 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003064/0.3862, allocations: 346.4 kB / 0.4953 GB, free: 11.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.3862, allocations: 15.38 kB / 0.4953 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.989e-05/0.3863, allocations: 11.78 kB / 0.4953 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002112/0.3865, allocations: 197 kB / 0.4955 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.3865, allocations: 0 / 0.4955 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.3866, allocations: 3.906 kB / 0.4955 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001154/0.3867, allocations: 23.67 kB / 0.4955 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.387, allocations: 129.5 kB / 0.4956 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.387, allocations: 3.938 kB / 0.4956 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.387, allocations: 3.938 kB / 0.4956 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.387, allocations: 0 / 0.4956 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001353/0.3872, allocations: 146.4 kB / 0.4958 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.3874, allocations: 68.02 kB / 0.4958 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.251e-05/0.3875, allocations: 44.69 kB / 0.4959 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.3875, allocations: 4 kB / 0.4959 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.3875, allocations: 33.44 kB / 0.4959 GB, free: 10.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.502e-06/0.3875, allocations: 0 / 0.4959 GB, free: 10.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002144/0.3878, allocations: 80.27 kB / 0.496 GB, free: 10.7 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.3878, allocations: 55.42 kB / 0.496 GB, free: 10.63 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.3879, allocations: 129.6 kB / 0.4962 GB, free: 10.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.388, allocations: 25.7 kB / 0.4962 GB, free: 10.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.947e-05/0.388, allocations: 154.6 kB / 0.4963 GB, free: 10.35 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.55e-05/0.388, allocations: 6.578 kB / 0.4963 GB, free: 10.35 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-06/0.388, allocations: 0 / 0.4963 GB, free: 10.35 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.383e-05/0.3881, allocations: 318.4 kB / 0.4966 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.6e-05/0.3881, allocations: 8.391 kB / 0.4966 GB, free: 10.04 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.013e-05/0.3882, allocations: 54.77 kB / 0.4967 GB, free: 9.969 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.435e-05/0.3883, allocations: 25.45 kB / 0.4967 GB, free: 9.961 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3883, allocations: 192 / 0.4967 GB, free: 9.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001446/0.3884, allocations: 77.08 kB / 0.4968 GB, free: 9.918 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.3885, allocations: 9.203 kB / 0.4968 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.3885, allocations: 7.781 kB / 0.4968 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.3885, allocations: 3.844 kB / 0.4968 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.3886, allocations: 12.84 kB / 0.4968 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.3886, allocations: 8.812 kB / 0.4968 GB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.114e-05/0.3887, allocations: 3.938 kB / 0.4968 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-06/0.3887, allocations: 3.75 kB / 0.4968 GB, free: 9.902 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.923e-05/0.3888, allocations: 36.27 kB / 0.4969 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.3889, allocations: 80.06 kB / 0.497 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.802e-05/0.389, allocations: 12.56 kB / 0.497 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.389, allocations: 3.75 kB / 0.497 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.389, allocations: 1.453 kB / 0.497 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.389, allocations: 0 / 0.497 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.08e-05/0.3891, allocations: 149 kB / 0.4971 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3891, allocations: 0 / 0.4971 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.3892, allocations: 17.95 kB / 0.4971 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.3893, allocations: 0 / 0.4971 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.3893, allocations: 4 kB / 0.4971 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.3893, allocations: 0 / 0.4971 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.3893, allocations: 3.906 kB / 0.4971 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001483/0.3894, allocations: 102.9 kB / 0.4972 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.04e-05/0.3895, allocations: 100.6 kB / 0.4973 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.3896, allocations: 3.625 kB / 0.4973 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.562e-05/0.3896, allocations: 1.359 kB / 0.4973 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.976e-06/0.3896, allocations: 0 / 0.4973 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.752e-06/0.3896, allocations: 8 kB / 0.4973 GB, free: 9.473 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.927e-05/0.3897, allocations: 104.7 kB / 0.4974 GB, free: 9.398 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002344/0.39, allocations: 7.844 kB / 0.4975 GB, free: 9.398 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.000104/0.3901, allocations: 105.4 kB / 0.4976 GB, free: 9.305 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.3902, allocations: 39.17 kB / 0.4976 GB, free: 9.301 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3902, allocations: 0 / 0.4976 GB, free: 9.301 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.42e-07/0.3902, allocations: 0.5 kB / 0.4976 GB, free: 9.301 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.3906, allocations: 45.91 kB / 0.4976 GB, free: 9.293 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003147/0.3909, allocations: 148.5 kB / 0.4978 GB, free: 9.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002022/0.3911, allocations: 0.7131 MB / 0.4985 GB, free: 8.473 MB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.3911, allocations: 3.844 kB / 0.4985 GB, free: 8.473 MB / 330.7 MB Notification: Performance of Templates: time 0.002872/0.394, allocations: 0.863 MB / 0.4993 GB, free: 8.418 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches