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.002405/0.002405, allocations: 186.2 kB / 16.44 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.946/1.946, allocations: 205.4 MB / 222.6 MB, free: 9.121 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.001121/0.001121, allocations: 94.84 kB / 270.9 MB, free: 8.367 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.0998/0.0998, allocations: 12.6 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005238/0.0005235, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09253/0.09308, allocations: 50.37 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4111/0.5043, allocations: 78.55 MB / 0.5087 GB, free: 12.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.5046, allocations: 82.05 kB / 0.5088 GB, free: 12.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005536/0.5102, allocations: 1.501 MB / 0.5102 GB, free: 12.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.5102, allocations: 0 / 0.5102 GB, free: 12.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.301e-05/0.5102, allocations: 0 / 0.5102 GB, free: 12.29 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004103/0.5107, allocations: 375.5 kB / 0.5106 GB, free: 11.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.5107, allocations: 15.44 kB / 0.5106 GB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.5108, allocations: 11.78 kB / 0.5106 GB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/0.511, allocations: 190.4 kB / 0.5108 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.511, allocations: 11.16 kB / 0.5108 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.511, allocations: 3.812 kB / 0.5108 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003349/0.5114, allocations: 136.5 kB / 0.5109 GB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.5114, allocations: 0 / 0.5109 GB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.5114, allocations: 3.812 kB / 0.511 GB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.5114, allocations: 3.844 kB / 0.511 GB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001396/0.5116, allocations: 26.7 kB / 0.511 GB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004571/0.5121, allocations: 367.7 kB / 0.5113 GB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.5123, allocations: 158.6 kB / 0.5115 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.5123, allocations: 4.094 kB / 0.5115 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.5124, allocations: 38.48 kB / 0.5115 GB, free: 10.97 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.743e-06/0.5124, allocations: 0 / 0.5115 GB, free: 10.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003813/0.5128, allocations: 99.08 kB / 0.5116 GB, free: 10.92 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.5128, allocations: 118.4 kB / 0.5117 GB, free: 10.79 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.513, allocations: 123.6 kB / 0.5119 GB, free: 10.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.513, allocations: 33.17 kB / 0.5119 GB, free: 10.65 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.623e-05/0.513, allocations: 154.7 kB / 0.512 GB, free: 10.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.5131, allocations: 7.094 kB / 0.512 GB, free: 10.49 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.271e-06/0.5131, allocations: 3.844 kB / 0.512 GB, free: 10.49 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.407e-05/0.5131, allocations: 318.6 kB / 0.5123 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.388e-05/0.5132, allocations: 15.73 kB / 0.5124 GB, free: 10.17 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.487e-05/0.5133, allocations: 46.56 kB / 0.5124 GB, free: 10.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.73e-05/0.5134, allocations: 26.33 kB / 0.5124 GB, free: 10.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.5134, allocations: 0 / 0.5124 GB, free: 10.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002226/0.5137, allocations: 94.22 kB / 0.5125 GB, free: 10.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.5137, allocations: 3.938 kB / 0.5125 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.5137, allocations: 0 / 0.5125 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.5137, allocations: 3.656 kB / 0.5125 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.5138, allocations: 12 kB / 0.5125 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.5139, allocations: 11.73 kB / 0.5125 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.249e-05/0.514, allocations: 3.844 kB / 0.5126 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.514, allocations: 0 / 0.5126 GB, free: 10.05 MB / 330.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 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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 8.598e-05/0.5141, allocations: 120.9 kB / 0.5127 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.5142, allocations: 56.06 kB / 0.5127 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.101e-05/0.5142, allocations: 15.48 kB / 0.5127 GB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.5143, allocations: 0 / 0.5127 GB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.5143, allocations: 0 / 0.5127 GB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.5143, allocations: 7.219 kB / 0.5127 GB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002461/0.5145, allocations: 176 kB / 0.5129 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.5146, allocations: 0 / 0.5129 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.758e-05/0.5146, allocations: 19.48 kB / 0.5129 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.5147, allocations: 3.812 kB / 0.5129 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.5147, allocations: 0 / 0.5129 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.5147, allocations: 3.938 kB / 0.5129 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5147, allocations: 0 / 0.5129 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00025/0.515, allocations: 284.1 kB / 0.5132 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.515, allocations: 96.27 kB / 0.5133 GB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.5151, allocations: 7.562 kB / 0.5133 GB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.5152, allocations: 8.625 kB / 0.5133 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.5153, allocations: 3.938 kB / 0.5133 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.5153, allocations: 7.766 kB / 0.5133 GB, free: 9.289 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.484e-05/0.5154, allocations: 106.2 kB / 0.5134 GB, free: 9.207 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5154, allocations: 0 / 0.5134 GB, free: 9.207 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003505/0.5157, allocations: 11.69 kB / 0.5134 GB, free: 9.207 MB / 330.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 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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 8.979e-05/0.5158, allocations: 95.42 kB / 0.5135 GB, free: 9.121 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002294/0.5161, allocations: 49.88 kB / 0.5136 GB, free: 9.105 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.5161, allocations: 0 / 0.5136 GB, free: 9.105 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.125e-05/0.5162, allocations: 18.11 kB / 0.5136 GB, free: 9.102 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003495/0.5165, allocations: 26.94 kB / 0.5136 GB, free: 9.094 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004248/0.517, allocations: 240.9 kB / 0.5138 GB, free: 8.871 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001629/0.5172, allocations: 0.6993 MB / 0.5145 GB, free: 8.164 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.774e-05/0.5172, allocations: 7.438 kB / 0.5145 GB, free: 8.156 MB / 330.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5172, allocations: 0 / 0.5145 GB, free: 8.156 MB / 330.7 MB Notification: Performance of Templates: time 0.00251/0.5197, allocations: 0.855 MB / 0.5154 GB, free: 7.727 MB / 330.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