Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001478/0.001478, allocations: 179.7 kB / 8.405 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.164/2.164, allocations: 205.3 MB / 214.1 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001111, allocations: 78.7 kB / 262.1 MB, free: 1.621 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.1041/0.1041, allocations: 12.6 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.136e-05, allocations: 0 / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3105, allocations: 50.37 MB / 429.3 MB, free: 18.44 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1402/0.4508, allocations: 77.11 MB / 0.4945 GB, free: 5.223 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/0.4511, allocations: 75.95 kB / 0.4946 GB, free: 5.148 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004964/0.4561, allocations: 1.27 MB / 0.4958 GB, free: 3.875 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4562, allocations: 0 / 0.4958 GB, free: 3.875 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.4562, allocations: 0 / 0.4958 GB, free: 3.875 MB / 346.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.0004092/0.4566, allocations: 350.4 kB / 0.4962 GB, free: 3.488 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.4567, allocations: 12.03 kB / 0.4962 GB, free: 3.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.302e-05/0.4567, allocations: 11.81 kB / 0.4962 GB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002623/0.457, allocations: 190.9 kB / 0.4964 GB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.457, allocations: 3.938 kB / 0.4964 GB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.4571, allocations: 7.953 kB / 0.4964 GB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001177/0.4572, allocations: 20 kB / 0.4964 GB, free: 3.207 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003307/0.4575, allocations: 123.3 kB / 0.4965 GB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.4576, allocations: 0 / 0.4965 GB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.4576, allocations: 3.938 kB / 0.4965 GB, free: 3.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.4576, allocations: 7.984 kB / 0.4965 GB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001766/0.4578, allocations: 142.2 kB / 0.4967 GB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.458, allocations: 74.69 kB / 0.4967 GB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.507e-05/0.4581, allocations: 36.86 kB / 0.4968 GB, free: 2.766 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.4582, allocations: 7.938 kB / 0.4968 GB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.4582, allocations: 38.56 kB / 0.4968 GB, free: 2.711 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.864e-06/0.4582, allocations: 0 / 0.4968 GB, free: 2.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002449/0.4585, allocations: 73.73 kB / 0.4969 GB, free: 2.633 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/0.4586, allocations: 55.34 kB / 0.4969 GB, free: 2.566 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.4587, allocations: 129.1 kB / 0.4971 GB, free: 2.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.4588, allocations: 29.7 kB / 0.4971 GB, free: 2.395 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.09e-05/0.4589, allocations: 158.6 kB / 0.4972 GB, free: 2.238 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.4589, allocations: 0 / 0.4972 GB, free: 2.238 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.4589, allocations: 0 / 0.4972 GB, free: 2.238 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.4591, allocations: 314.8 kB / 0.4975 GB, free: 1.922 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.521e-05/0.4591, allocations: 11.94 kB / 0.4975 GB, free: 1.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.146e-05/0.4592, allocations: 58.86 kB / 0.4976 GB, free: 1.828 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.249e-05/0.4593, allocations: 15.94 kB / 0.4976 GB, free: 1.812 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.4593, allocations: 0 / 0.4976 GB, free: 1.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001871/0.4595, allocations: 81.55 kB / 0.4977 GB, free: 1.727 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.4595, allocations: 8 kB / 0.4977 GB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.4595, allocations: 3.953 kB / 0.4977 GB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.4596, allocations: 4 kB / 0.4977 GB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.4597, allocations: 12 kB / 0.4977 GB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.4597, allocations: 11.92 kB / 0.4977 GB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.963e-05/0.4598, allocations: 7.906 kB / 0.4977 GB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.4598, allocations: 4.25 kB / 0.4977 GB, free: 1.676 MB / 346.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 0.0001061/0.4599, allocations: 108.9 kB / 0.4979 GB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.4601, allocations: 73.59 kB / 0.4979 GB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.341e-05/0.4602, allocations: 12.62 kB / 0.4979 GB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.4602, allocations: 7.938 kB / 0.4979 GB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.4602, allocations: 0 / 0.4979 GB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4602, allocations: 0 / 0.4979 GB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.4604, allocations: 146.2 kB / 0.4981 GB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.4604, allocations: 0 / 0.4981 GB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.4605, allocations: 23.92 kB / 0.4981 GB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.4605, allocations: 8 kB / 0.4981 GB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.4605, allocations: 0 / 0.4981 GB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.4606, allocations: 0 / 0.4981 GB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.4606, allocations: 0 / 0.4981 GB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.4608, allocations: 101 kB / 0.4982 GB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.654e-05/0.4609, allocations: 96.94 kB / 0.4983 GB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.335e-05/0.4609, allocations: 3.984 kB / 0.4983 GB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.343e-05/0.461, allocations: 0 / 0.4983 GB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.028e-06/0.461, allocations: 4 kB / 0.4983 GB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.461, allocations: 8 kB / 0.4983 GB, free: 1.008 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.762e-05/0.4611, allocations: 104.7 kB / 0.4984 GB, free: 0.9062 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4611, allocations: 0 / 0.4984 GB, free: 0.9062 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002861/0.4614, allocations: 7.953 kB / 0.4984 GB, free: 0.8984 MB / 346.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.0001714/0.4616, allocations: 100.7 kB / 0.4985 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000164/0.4618, allocations: 40.23 kB / 0.4986 GB, free: 0.75 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4618, allocations: 4.188 kB / 0.4986 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.233e-06/0.4618, allocations: 192 / 0.4986 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.4621, allocations: 43.8 kB / 0.4986 GB, free: 0.707 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003848/0.4625, allocations: 145.8 kB / 0.4987 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/0.4629, allocations: 0.7041 MB / 0.4994 GB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.727e-05/0.4629, allocations: 15.42 kB / 0.4994 GB, free: 15.79 MB / 362.7 MB Notification: Performance of SimCode: time 7.71e-07/0.463, allocations: 0 / 0.4994 GB, free: 15.79 MB / 362.7 MB Notification: Performance of Templates: time 0.003106/0.4661, allocations: 0.8433 MB / 0.5003 GB, free: 14.95 MB / 362.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/jenkins1/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