Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001484/0.001484, allocations: 180.1 kB / 8.408 MB, free: 0.668 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.177/2.177, allocations: 205.3 MB / 214.1 MB, free: 1.727 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.001107/0.001107, allocations: 90.23 kB / 262.2 MB, free: 1.68 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.1028/0.1028, allocations: 12.61 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.894e-05/2.894e-05, allocations: 8 kB / 378.9 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3263, allocations: 50.36 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1394/0.4658, allocations: 77.81 MB / 0.4952 GB, free: 4.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/0.4661, allocations: 75.95 kB / 0.4953 GB, free: 4.441 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006283/0.4724, allocations: 1.478 MB / 0.4967 GB, free: 2.961 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.959e-06/0.4725, allocations: 0 / 0.4967 GB, free: 2.961 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.4725, allocations: 3.938 kB / 0.4967 GB, free: 2.957 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.00048/0.473, allocations: 362.3 kB / 0.4971 GB, free: 2.559 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.4731, allocations: 12.03 kB / 0.4971 GB, free: 2.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.607e-05/0.4731, allocations: 11.81 kB / 0.4971 GB, free: 2.535 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.4734, allocations: 187.4 kB / 0.4973 GB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.4734, allocations: 7.938 kB / 0.4973 GB, free: 2.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.4734, allocations: 8 kB / 0.4973 GB, free: 2.297 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001267/0.4736, allocations: 27.97 kB / 0.4973 GB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.4739, allocations: 113.8 kB / 0.4974 GB, free: 2.137 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.4739, allocations: 0 / 0.4974 GB, free: 2.137 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.4739, allocations: 0 / 0.4974 GB, free: 2.137 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.474, allocations: 4 kB / 0.4974 GB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005074/0.4745, allocations: 338.5 kB / 0.4977 GB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.4747, allocations: 148.8 kB / 0.4979 GB, free: 1.566 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.458e-05/0.4748, allocations: 34.7 kB / 0.4979 GB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.4749, allocations: 3.984 kB / 0.4979 GB, free: 1.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.4749, allocations: 38.5 kB / 0.498 GB, free: 1.473 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.074e-06/0.4749, allocations: 0 / 0.498 GB, free: 1.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002538/0.4752, allocations: 65.69 kB / 0.498 GB, free: 1.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/0.4753, allocations: 110.7 kB / 0.4981 GB, free: 1.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.4754, allocations: 120.2 kB / 0.4982 GB, free: 1.145 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.4755, allocations: 29.7 kB / 0.4983 GB, free: 1.109 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.833e-05/0.4756, allocations: 154.8 kB / 0.4984 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/0.4756, allocations: 7.906 kB / 0.4984 GB, free: 0.9453 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-06/0.4756, allocations: 0 / 0.4984 GB, free: 0.9453 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.4758, allocations: 326.8 kB / 0.4987 GB, free: 0.6172 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.302e-05/0.4758, allocations: 8 kB / 0.4987 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.091e-05/0.4759, allocations: 40.28 kB / 0.4988 GB, free: 0.5547 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.251e-05/0.476, allocations: 11.98 kB / 0.4988 GB, free: 0.543 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.476, allocations: 11.94 kB / 0.4988 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001581/0.4762, allocations: 61.56 kB / 0.4989 GB, free: 476 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.4762, allocations: 8 kB / 0.4989 GB, free: 468 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.4762, allocations: 0 / 0.4989 GB, free: 468 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.4763, allocations: 0 / 0.4989 GB, free: 468 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.4764, allocations: 15.98 kB / 0.4989 GB, free: 452 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.4764, allocations: 0 / 0.4989 GB, free: 452 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.817e-05/0.4765, allocations: 7.938 kB / 0.4989 GB, free: 444 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.4765, allocations: 12.12 kB / 0.4989 GB, free: 432 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.946e-05/0.4766, allocations: 108.9 kB / 0.499 GB, free: 316 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.4768, allocations: 53.59 kB / 0.4991 GB, free: 256 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.504e-05/0.4768, allocations: 4.344 kB / 0.4991 GB, free: 252 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.4769, allocations: 4 kB / 0.4991 GB, free: 248 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.4769, allocations: 0 / 0.4991 GB, free: 248 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.4769, allocations: 8.062 kB / 0.4991 GB, free: 240 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00029/0.4772, allocations: 162.1 kB / 0.4992 GB, free: 40 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.4772, allocations: 0 / 0.4992 GB, free: 40 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-05/0.4773, allocations: 15.98 kB / 0.4992 GB, free: 24 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.4773, allocations: 4 kB / 0.4993 GB, free: 20 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.4774, allocations: 0 / 0.4993 GB, free: 20 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.4774, allocations: 0 / 0.4993 GB, free: 20 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.4774, allocations: 0 / 0.4993 GB, free: 20 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002869/0.4777, allocations: 274.9 kB / 0.4995 GB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.61e-05/0.4778, allocations: 93 kB / 0.4996 GB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.011e-05/0.4778, allocations: 8.047 kB / 0.4996 GB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.478, allocations: 8 kB / 0.4996 GB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.759e-05/0.478, allocations: 0 / 0.4996 GB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.4781, allocations: 4 kB / 0.4996 GB, free: 15.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.77e-05/0.4782, allocations: 103.9 kB / 0.4997 GB, free: 15.49 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4782, allocations: 0 / 0.4997 GB, free: 15.49 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003824/0.4786, allocations: 12 kB / 0.4997 GB, free: 15.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001451/0.4787, allocations: 103 kB / 0.4998 GB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000141/0.4789, allocations: 31.92 kB / 0.4999 GB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4789, allocations: 1.219 kB / 0.4999 GB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.234e-05/0.479, allocations: 7.938 kB / 0.4999 GB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000392/0.4794, allocations: 27.33 kB / 0.4999 GB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004175/0.4798, allocations: 148.2 kB / 0.5 GB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.4802, allocations: 0.704 MB / 0.5007 GB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.088e-05/0.4802, allocations: 11.44 kB / 0.5007 GB, free: 14.38 MB / 362.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4802, allocations: 0 / 0.5007 GB, free: 14.38 MB / 362.7 MB Notification: Performance of Templates: time 0.003072/0.4833, allocations: 0.827 MB / 0.5015 GB, free: 13.56 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches