Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.002393/0.002393, allocations: 186.4 kB / 8.198 MB, free: 2.168 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.71/1.71, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001258/0.001258, allocations: 96.78 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.0978/0.0978, allocations: 12.6 MB / 322.4 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.884e-06/8.085e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08561/0.08565, allocations: 50.37 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2761/0.3618, allocations: 77 MB / 0.4939 GB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.3621, allocations: 76.89 kB / 0.494 GB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003809/0.3659, allocations: 0.8895 MB / 0.4948 GB, free: 11.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.366, allocations: 0 / 0.4948 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.0002565/0.3663, allocations: 344.4 kB / 0.4952 GB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.3663, allocations: 9.312 kB / 0.4952 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.105e-05/0.3664, allocations: 12.19 kB / 0.4952 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.3666, allocations: 189.8 kB / 0.4954 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.3666, allocations: 3.844 kB / 0.4954 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.3666, allocations: 7.969 kB / 0.4954 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.924e-05/0.3667, allocations: 18.09 kB / 0.4954 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/0.367, allocations: 109.4 kB / 0.4955 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.367, allocations: 3.844 kB / 0.4955 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.367, allocations: 3.938 kB / 0.4955 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.367, allocations: 0 / 0.4955 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001155/0.3672, allocations: 149.1 kB / 0.4956 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.3673, allocations: 56.83 kB / 0.4957 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.357e-05/0.3674, allocations: 36.08 kB / 0.4957 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-06/0.3674, allocations: 3.938 kB / 0.4957 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.537e-05/0.3674, allocations: 31.73 kB / 0.4958 GB, free: 10.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.3674, allocations: 0 / 0.4958 GB, free: 10.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001727/0.3676, allocations: 70.89 kB / 0.4958 GB, free: 10.71 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.3677, allocations: 55.22 kB / 0.4959 GB, free: 10.65 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.3678, allocations: 123.9 kB / 0.496 GB, free: 10.55 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.778e-06/0.3678, allocations: 25.7 kB / 0.496 GB, free: 10.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.596e-05/0.3678, allocations: 150.6 kB / 0.4962 GB, free: 10.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.471e-05/0.3679, allocations: 9.125 kB / 0.4962 GB, free: 10.37 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-06/0.3679, allocations: 0 / 0.4962 GB, free: 10.37 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.365e-05/0.3679, allocations: 315.7 kB / 0.4965 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.029e-05/0.368, allocations: 7.812 kB / 0.4965 GB, free: 10.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.259e-05/0.368, allocations: 54.61 kB / 0.4965 GB, free: 9.992 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.984e-05/0.3681, allocations: 21.59 kB / 0.4966 GB, free: 9.984 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3681, allocations: 0 / 0.4966 GB, free: 9.984 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001305/0.3682, allocations: 68.36 kB / 0.4966 GB, free: 9.945 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.3683, allocations: 7.688 kB / 0.4966 GB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.3683, allocations: 0 / 0.4966 GB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3683, allocations: 8 kB / 0.4966 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.065e-05/0.3683, allocations: 12.38 kB / 0.4967 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.3683, allocations: 5.25 kB / 0.4967 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.353e-05/0.3684, allocations: 3.969 kB / 0.4967 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-06/0.3684, allocations: 3.812 kB / 0.4967 GB, free: 9.934 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 (integerConstant.y,xor.y,xor.u2,xor.u1,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 4.739e-05/0.3685, allocations: 31.19 kB / 0.4967 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.568e-05/0.3686, allocations: 66.72 kB / 0.4968 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.68e-05/0.3686, allocations: 9.109 kB / 0.4968 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3686, allocations: 0 / 0.4968 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.3687, allocations: 7.812 kB / 0.4968 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.3687, allocations: 1.5 kB / 0.4968 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.376e-05/0.3687, allocations: 149.9 kB / 0.4969 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.3688, allocations: 3.969 kB / 0.4969 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.409e-05/0.3688, allocations: 0 / 0.4969 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3688, allocations: 0 / 0.4969 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.3688, allocations: 0 / 0.4969 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.3688, allocations: 5.359 kB / 0.4969 GB, free: 9.691 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3688, allocations: 160 / 0.4969 GB, free: 9.691 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001234/0.369, allocations: 98.14 kB / 0.497 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.23e-05/0.369, allocations: 99.78 kB / 0.4971 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.3691, allocations: 1.406 kB / 0.4971 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.668e-05/0.3691, allocations: 3.938 kB / 0.4971 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.827e-06/0.3691, allocations: 3.844 kB / 0.4971 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.3692, allocations: 3.938 kB / 0.4971 GB, free: 9.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.796e-05/0.3692, allocations: 96.84 kB / 0.4972 GB, free: 9.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002208/0.3694, allocations: 8.672 kB / 0.4972 GB, free: 9.43 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,xor.u1,xor.u2,xor.y,integerConstant.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 8.745e-05/0.3695, allocations: 106.5 kB / 0.4973 GB, free: 9.332 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000123/0.3697, allocations: 38.25 kB / 0.4974 GB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3697, allocations: 0 / 0.4974 GB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.22e-07/0.3697, allocations: 0 / 0.4974 GB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.37, allocations: 32.12 kB / 0.4974 GB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002875/0.3703, allocations: 129.8 kB / 0.4975 GB, free: 9.219 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/0.3705, allocations: 0.7141 MB / 0.4982 GB, free: 8.508 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.3705, allocations: 0 / 0.4982 GB, free: 8.508 MB / 330.7 MB Notification: Performance of Templates: time 0.00261/0.3731, allocations: 0.7735 MB / 0.499 GB, free: 8.465 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches