Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.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.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 191.7 kB / 7.845 MB, free: 2.496 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.36/1.36, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009024/0.0009021, allocations: 91.56 kB / 261.5 MB, free: 13.54 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.06889/0.06889, allocations: 12.59 MB / 322 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.99e-06/5.009e-06, allocations: 0 / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08093/0.08095, allocations: 50.37 MB / 428.8 MB, free: 25.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2508/0.3318, allocations: 77.03 MB / 0.4939 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.3321, allocations: 73.81 kB / 0.494 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.00279/0.3349, allocations: 0.9541 MB / 0.4949 GB, free: 11.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.3349, allocations: 4 kB / 0.4949 GB, free: 11.68 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.0002462/0.3352, allocations: 350.6 kB / 0.4953 GB, free: 11.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.3352, allocations: 7.719 kB / 0.4953 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.109e-05/0.3352, allocations: 11.66 kB / 0.4953 GB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.3354, allocations: 193.2 kB / 0.4955 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.799e-06/0.3354, allocations: 3.719 kB / 0.4955 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.3354, allocations: 0 / 0.4955 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.348e-05/0.3355, allocations: 32.17 kB / 0.4955 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001975/0.3357, allocations: 132.5 kB / 0.4956 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.3357, allocations: 0 / 0.4956 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.3358, allocations: 3.938 kB / 0.4956 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.3358, allocations: 0 / 0.4956 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.869e-05/0.3359, allocations: 143.3 kB / 0.4958 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/0.336, allocations: 77.81 kB / 0.4958 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.362e-05/0.3361, allocations: 42.41 kB / 0.4959 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.3361, allocations: 3.906 kB / 0.4959 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.318e-05/0.3361, allocations: 30.56 kB / 0.4959 GB, free: 10.8 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 9.52e-07/0.3361, allocations: 0 / 0.4959 GB, free: 10.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001425/0.3363, allocations: 73.14 kB / 0.496 GB, free: 10.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.3363, allocations: 55.38 kB / 0.496 GB, free: 10.7 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.67e-05/0.3364, allocations: 127.3 kB / 0.4962 GB, free: 10.61 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.963e-06/0.3364, allocations: 25.7 kB / 0.4962 GB, free: 10.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.624e-05/0.3364, allocations: 87.89 kB / 0.4963 GB, free: 10.49 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.284e-05/0.3364, allocations: 9.234 kB / 0.4963 GB, free: 10.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.3364, allocations: 0 / 0.4963 GB, free: 10.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.748e-05/0.3365, allocations: 325.4 kB / 0.4966 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.39e-05/0.3365, allocations: 3.906 kB / 0.4966 GB, free: 10.17 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.012e-05/0.3365, allocations: 59.17 kB / 0.4967 GB, free: 10.1 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.644e-05/0.3366, allocations: 21.48 kB / 0.4967 GB, free: 10.1 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3366, allocations: 5.078 kB / 0.4967 GB, free: 10.1 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.39e-05/0.3367, allocations: 78.06 kB / 0.4968 GB, free: 10.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.3367, allocations: 10.62 kB / 0.4968 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3367, allocations: 0 / 0.4968 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3367, allocations: 3.938 kB / 0.4968 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.497e-05/0.3368, allocations: 13.8 kB / 0.4968 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3368, allocations: 7.844 kB / 0.4968 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.489e-05/0.3369, allocations: 11.97 kB / 0.4968 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.3369, allocations: 3.906 kB / 0.4968 GB, free: 10.04 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 4.937e-05/0.3369, allocations: 115.8 kB / 0.4969 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.397e-05/0.337, allocations: 68.02 kB / 0.497 GB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.037e-05/0.3371, allocations: 14.41 kB / 0.497 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3371, allocations: 0 / 0.497 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3371, allocations: 0 / 0.497 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3371, allocations: 0 / 0.497 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.919e-05/0.3372, allocations: 154.5 kB / 0.4971 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3372, allocations: 5.359 kB / 0.4971 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.445e-05/0.3373, allocations: 12.59 kB / 0.4972 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3373, allocations: 0 / 0.4972 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.004e-06/0.3373, allocations: 0 / 0.4972 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3373, allocations: 0.8906 kB / 0.4972 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3373, allocations: 3.938 kB / 0.4972 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.43e-05/0.3374, allocations: 101.6 kB / 0.4973 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.384e-05/0.3374, allocations: 101.5 kB / 0.4974 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.3375, allocations: 4 kB / 0.4974 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.258e-05/0.3375, allocations: 0 / 0.4974 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.745e-06/0.3375, allocations: 4 kB / 0.4974 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.3375, allocations: 4.844 kB / 0.4974 GB, free: 9.543 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.886e-05/0.3376, allocations: 106.8 kB / 0.4975 GB, free: 9.465 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002102/0.3378, allocations: 7.844 kB / 0.4975 GB, free: 9.465 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 7.732e-05/0.3379, allocations: 94.72 kB / 0.4976 GB, free: 9.375 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.059e-05/0.3379, allocations: 52.48 kB / 0.4976 GB, free: 9.367 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.338, allocations: 3.938 kB / 0.4976 GB, free: 9.363 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.338, allocations: 0 / 0.4976 GB, free: 9.363 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.3382, allocations: 45.78 kB / 0.4977 GB, free: 9.355 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002125/0.3384, allocations: 106.8 kB / 0.4978 GB, free: 9.281 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.3386, allocations: 0.7204 MB / 0.4985 GB, free: 8.574 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3386, allocations: 0 / 0.4985 GB, free: 8.574 MB / 330.7 MB Notification: Performance of Templates: time 0.002352/0.341, allocations: 0.698 MB / 0.4992 GB, free: 8.492 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches