Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002337/0.002337, allocations: 182.2 kB / 13.69 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.146/2.146, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001116/0.001116, allocations: 90.64 kB / 267.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1006/0.1006, allocations: 12.61 MB / 328.2 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.514e-05/3.516e-05, allocations: 0 / 386 MB, free: 1.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3156, allocations: 50.37 MB / 436.3 MB, free: 14.17 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1453/0.461, allocations: 77.75 MB / 0.502 GB, free: 320 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/0.4614, allocations: 79.94 kB / 0.5021 GB, free: 240 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004702/0.4661, allocations: 1.211 MB / 0.5033 GB, free: 15.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4662, allocations: 3.938 kB / 0.5033 GB, free: 15.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.4662, allocations: 0 / 0.5033 GB, free: 15.02 MB / 362.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.0004585/0.4667, allocations: 338.5 kB / 0.5036 GB, free: 14.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.4667, allocations: 12.03 kB / 0.5036 GB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.736e-05/0.4668, allocations: 7.906 kB / 0.5036 GB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/0.4671, allocations: 186.9 kB / 0.5038 GB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.4671, allocations: 4 kB / 0.5038 GB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.4672, allocations: 11.89 kB / 0.5038 GB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003701/0.4675, allocations: 119.3 kB / 0.5039 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.4676, allocations: 8 kB / 0.504 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.4676, allocations: 0 / 0.504 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.4676, allocations: 0 / 0.504 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.648e-05/0.4677, allocations: 16 kB / 0.504 GB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000206/0.4679, allocations: 169.6 kB / 0.5041 GB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/0.4681, allocations: 74.61 kB / 0.5042 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.069e-05/0.4682, allocations: 40.86 kB / 0.5042 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.4683, allocations: 0 / 0.5042 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.4683, allocations: 30.56 kB / 0.5043 GB, free: 13.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.4683, allocations: 0 / 0.5043 GB, free: 13.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002203/0.4686, allocations: 73.58 kB / 0.5043 GB, free: 13.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.374e-05/0.4686, allocations: 55.41 kB / 0.5044 GB, free: 13.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.4688, allocations: 125.7 kB / 0.5045 GB, free: 13.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.4688, allocations: 25.7 kB / 0.5045 GB, free: 13.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.618e-05/0.4689, allocations: 158.6 kB / 0.5047 GB, free: 13.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.469, allocations: 7.984 kB / 0.5047 GB, free: 13.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/0.469, allocations: 4 kB / 0.5047 GB, free: 13.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.4691, allocations: 310.8 kB / 0.505 GB, free: 13.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.181e-05/0.4692, allocations: 12 kB / 0.505 GB, free: 13.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.207e-05/0.4693, allocations: 58.81 kB / 0.5051 GB, free: 12.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.826e-05/0.4693, allocations: 19.92 kB / 0.5051 GB, free: 12.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.4694, allocations: 4 kB / 0.5051 GB, free: 12.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000301/0.4697, allocations: 89.45 kB / 0.5052 GB, free: 12.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.4697, allocations: 4 kB / 0.5052 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.4697, allocations: 4 kB / 0.5052 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.4698, allocations: 0 / 0.5052 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.46e-05/0.4698, allocations: 7.984 kB / 0.5052 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.4698, allocations: 4.078 kB / 0.5052 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.622e-05/0.4699, allocations: 0 / 0.5052 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.4699, allocations: 8.234 kB / 0.5052 GB, free: 12.83 MB / 362.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 0.0001183/0.4701, allocations: 123.8 kB / 0.5053 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.4702, allocations: 77.69 kB / 0.5054 GB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.79e-05/0.4703, allocations: 12.62 kB / 0.5054 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.4703, allocations: 0 / 0.5054 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.4703, allocations: 0 / 0.5054 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.4703, allocations: 0 / 0.5054 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.4705, allocations: 173.6 kB / 0.5056 GB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4705, allocations: 3.984 kB / 0.5056 GB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.995e-05/0.4705, allocations: 7.938 kB / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.4706, allocations: 0 / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.4706, allocations: 3.953 kB / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.4706, allocations: 0 / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4706, allocations: 4 kB / 0.5056 GB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/0.4708, allocations: 94.19 kB / 0.5057 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.566e-05/0.4709, allocations: 93 kB / 0.5058 GB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.169e-05/0.4709, allocations: 0 / 0.5058 GB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.228e-05/0.471, allocations: 7.938 kB / 0.5058 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.014e-06/0.471, allocations: 4 kB / 0.5058 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.471, allocations: 11.94 kB / 0.5058 GB, free: 12.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001235/0.4711, allocations: 91.84 kB / 0.5059 GB, free: 12.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4712, allocations: 0 / 0.5059 GB, free: 12.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000257/0.4714, allocations: 12 kB / 0.5059 GB, free: 12.03 MB / 362.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 0.0001472/0.4716, allocations: 103.2 kB / 0.506 GB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001661/0.4718, allocations: 40.31 kB / 0.506 GB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4718, allocations: 0 / 0.506 GB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.983e-06/0.4718, allocations: 0 / 0.506 GB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.4721, allocations: 44.16 kB / 0.5061 GB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003967/0.4725, allocations: 143 kB / 0.5062 GB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.4729, allocations: 0.6965 MB / 0.5069 GB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.17e-05/0.473, allocations: 11.44 kB / 0.5069 GB, free: 10.93 MB / 362.7 MB Notification: Performance of SimCode: time 1.123e-06/0.473, allocations: 0 / 0.5069 GB, free: 10.93 MB / 362.7 MB Notification: Performance of Templates: time 0.003077/0.4761, allocations: 0.7848 MB / 0.5077 GB, free: 10.14 MB / 362.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/jenkins1/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