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/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/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.001302/0.001302, allocations: 181.2 kB / 17.46 MB, free: 4.246 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.791/2.791, allocations: 205.4 MB / 223.6 MB, free: 9.039 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.001147/0.001148, allocations: 85.42 kB / 272 MB, free: 8.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1197/0.1197, allocations: 12.2 MB / 332.4 MB, free: 11.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005766/0.0005769, allocations: 19.98 kB / 392.7 MB, free: 67.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1684/0.169, allocations: 50.29 MB / 443 MB, free: 16.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5423/0.7115, allocations: 78.54 MB / 0.5093 GB, free: 13.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003641/0.7119, allocations: 86.36 kB / 0.5094 GB, free: 13.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008168/0.7201, allocations: 2.059 MB / 0.5114 GB, free: 12.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.7201, allocations: 4 kB / 0.5114 GB, free: 12.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.7202, allocations: 3.875 kB / 0.5114 GB, free: 12.41 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.0004707/0.7206, allocations: 382.3 kB / 0.5118 GB, free: 12.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.7207, allocations: 7.688 kB / 0.5118 GB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.042e-05/0.7208, allocations: 8.688 kB / 0.5118 GB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.721, allocations: 198.3 kB / 0.512 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.7211, allocations: 384 / 0.512 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.7211, allocations: 7.406 kB / 0.512 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/0.7216, allocations: 145 kB / 0.5121 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.7216, allocations: 4.062 kB / 0.5122 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.7216, allocations: 3.938 kB / 0.5122 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.7217, allocations: 3.984 kB / 0.5122 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.7218, allocations: 33.48 kB / 0.5122 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005948/0.7224, allocations: 353.4 kB / 0.5125 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/0.7227, allocations: 169.5 kB / 0.5127 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.7228, allocations: 37.66 kB / 0.5127 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.7229, allocations: 4 kB / 0.5127 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.7229, allocations: 42.78 kB / 0.5128 GB, free: 11.05 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.903e-06/0.7229, allocations: 0 / 0.5128 GB, free: 11.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004584/0.7234, allocations: 100.9 kB / 0.5129 GB, free: 11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/0.7235, allocations: 110.7 kB / 0.513 GB, free: 10.87 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.7237, allocations: 137.5 kB / 0.5131 GB, free: 10.76 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.7237, allocations: 29.08 kB / 0.5131 GB, free: 10.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.994e-05/0.7237, allocations: 95.19 kB / 0.5132 GB, free: 10.63 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.452e-05/0.7238, allocations: 7.75 kB / 0.5132 GB, free: 10.63 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.7238, allocations: 3.125 kB / 0.5132 GB, free: 10.63 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.532e-05/0.7239, allocations: 313.9 kB / 0.5135 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.361e-05/0.724, allocations: 23.27 kB / 0.5136 GB, free: 10.31 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.345e-05/0.7241, allocations: 43.31 kB / 0.5136 GB, free: 10.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.7243, allocations: 68.81 kB / 0.5137 GB, free: 10.21 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.7243, allocations: 3.938 kB / 0.5137 GB, free: 10.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002514/0.7246, allocations: 92.75 kB / 0.5138 GB, free: 10.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.7246, allocations: 7.719 kB / 0.5138 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.7246, allocations: 4.125 kB / 0.5138 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.7246, allocations: 3.906 kB / 0.5138 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.7247, allocations: 7.656 kB / 0.5138 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.7248, allocations: 0 / 0.5138 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.666e-05/0.7249, allocations: 7.891 kB / 0.5138 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.7249, allocations: 7.125 kB / 0.5138 GB, free: 10.15 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 0.0001077/0.725, allocations: 129.3 kB / 0.5139 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.7252, allocations: 54.28 kB / 0.514 GB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.305e-05/0.7252, allocations: 7.75 kB / 0.514 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.7252, allocations: 7.844 kB / 0.514 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.7252, allocations: 0 / 0.514 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.7253, allocations: 4.266 kB / 0.514 GB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003238/0.7256, allocations: 175.9 kB / 0.5142 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.7256, allocations: 7.625 kB / 0.5142 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.937e-05/0.7257, allocations: 11.8 kB / 0.5142 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.7257, allocations: 3.984 kB / 0.5142 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.7258, allocations: 0 / 0.5142 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.7258, allocations: 3.875 kB / 0.5142 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.7258, allocations: 3.938 kB / 0.5142 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.7261, allocations: 269 kB / 0.5144 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.726e-05/0.7262, allocations: 92.41 kB / 0.5145 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.7262, allocations: 0 / 0.5145 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.7265, allocations: 11.8 kB / 0.5145 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.7265, allocations: 3.844 kB / 0.5145 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.7265, allocations: 3.125 kB / 0.5145 GB, free: 9.406 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.79e-05/0.7266, allocations: 109.4 kB / 0.5146 GB, free: 9.324 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.7267, allocations: 3.938 kB / 0.5147 GB, free: 9.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005311/0.7272, allocations: 10.84 kB / 0.5147 GB, free: 9.32 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 0.0001211/0.7273, allocations: 94.72 kB / 0.5148 GB, free: 9.23 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002571/0.7276, allocations: 53.06 kB / 0.5148 GB, free: 9.215 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.7276, allocations: 0 / 0.5148 GB, free: 9.215 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.795e-05/0.7277, allocations: 10.81 kB / 0.5148 GB, free: 9.215 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007289/0.7285, allocations: 36.5 kB / 0.5148 GB, free: 9.203 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005218/0.729, allocations: 241.8 kB / 0.5151 GB, free: 8.977 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001876/0.7292, allocations: 0.6954 MB / 0.5158 GB, free: 8.273 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.403e-05/0.7293, allocations: 7.438 kB / 0.5158 GB, free: 8.266 MB / 330.7 MB Notification: Performance of SimCode: time 3.8e-07/0.7293, allocations: 3.969 kB / 0.5158 GB, free: 8.266 MB / 330.7 MB Notification: Performance of Templates: time 0.003052/0.7323, allocations: 0.8636 MB / 0.5166 GB, free: 7.832 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