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.00275/0.002756, allocations: 182 kB / 16.45 MB, free: 5.711 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.784/3.784, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.001939/0.001939, allocations: 92.36 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.2349/0.2349, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009798/0.0009801, allocations: 15.98 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1821, allocations: 50.37 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003344/0.1855, allocations: 1.282 MB / 443.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.1873, allocations: 0.4922 MB / 444.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.1876, allocations: 3.938 kB / 444.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.663e-05/0.1876, allocations: 4 kB / 444.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.1878, allocations: 11.97 kB / 444.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005856/0.1884, allocations: 47.83 kB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.1886, allocations: 31.91 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.1888, allocations: 16.16 kB / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.1889, allocations: 27.84 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.454e-05/0.1891, allocations: 23.86 kB / 444.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.125e-05/0.1891, allocations: 0 / 444.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.406e-05/0.1892, allocations: 4 kB / 444.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.263e-05/0.1892, allocations: 8 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.904e-05/0.1893, allocations: 33.64 kB / 444.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.1894, allocations: 39.91 kB / 444.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1895, allocations: 4 kB / 444.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1895, allocations: 0 / 444.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1895, allocations: 4 kB / 444.4 MB, free: 14.41 MB / 298.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.0006671/0.1902, allocations: 375.2 kB / 444.7 MB, free: 14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.1903, allocations: 8.031 kB / 444.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.654e-05/0.1903, allocations: 7.906 kB / 444.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.1906, allocations: 202.7 kB / 445 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.1907, allocations: 0 / 445 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.396e-05/0.1907, allocations: 8 kB / 445 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005289/0.1913, allocations: 129.9 kB / 445.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.1913, allocations: 3.984 kB / 445.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.1914, allocations: 0 / 445.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.687e-06/0.1914, allocations: 4 kB / 445.1 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002076/0.1916, allocations: 31.92 kB / 445.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005472/0.1922, allocations: 274.6 kB / 445.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003682/0.1926, allocations: 164.9 kB / 445.6 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.15e-05/0.1926, allocations: 8.062 kB / 445.6 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.1927, allocations: 30.56 kB / 445.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 4.619e-06/0.1927, allocations: 4 kB / 445.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006143/0.1933, allocations: 101.5 kB / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.134e-05/0.1934, allocations: 110.8 kB / 445.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.1937, allocations: 142.1 kB / 446 MB, free: 12.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.1937, allocations: 29.95 kB / 446 MB, free: 12.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.762e-05/0.1938, allocations: 162.7 kB / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.443e-05/0.1939, allocations: 7.906 kB / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.083e-06/0.1939, allocations: 0 / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.58e-05/0.194, allocations: 314.8 kB / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.1942, allocations: 15.98 kB / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.1943, allocations: 48.28 kB / 446.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.1945, allocations: 16 kB / 446.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.1945, allocations: 0 / 446.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003886/0.1949, allocations: 97.53 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.195, allocations: 4 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.195, allocations: 4 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.1951, allocations: 0 / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.1952, allocations: 11.94 kB / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.1953, allocations: 7.984 kB / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.1954, allocations: 7.953 kB / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.1955, allocations: 11.94 kB / 446.7 MB, free: 11.82 MB / 298.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.0001542/0.1956, allocations: 122 kB / 446.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.1958, allocations: 57.81 kB / 446.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.933e-05/0.1959, allocations: 16.23 kB / 446.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.1959, allocations: 0 / 446.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.196, allocations: 0 / 446.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.196, allocations: 0 / 446.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003335/0.1963, allocations: 177.5 kB / 447 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.1964, allocations: 4 kB / 447 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.1965, allocations: 15.92 kB / 447.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.1966, allocations: 0 / 447.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.1966, allocations: 8 kB / 447.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.1966, allocations: 4 kB / 447.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.1966, allocations: 0 / 447.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000404/0.1971, allocations: 212.5 kB / 447.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.1972, allocations: 96.98 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.946e-05/0.1972, allocations: 0 / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.1975, allocations: 8 kB / 447.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.214e-05/0.1976, allocations: 7.891 kB / 447.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.1976, allocations: 4 kB / 447.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001779/0.1978, allocations: 107.9 kB / 447.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.1978, allocations: 3.938 kB / 447.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005985/0.1984, allocations: 12 kB / 447.5 MB, free: 10.86 MB / 298.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.0001612/0.1986, allocations: 95.25 kB / 447.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000372/0.199, allocations: 47.91 kB / 447.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.199, allocations: 4 kB / 447.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.1992, allocations: 12.31 kB / 447.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005819/0.1998, allocations: 27.95 kB / 447.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007112/0.2005, allocations: 232.8 kB / 447.9 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.2008, allocations: 0.7083 MB / 448.6 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.36e-05/0.2009, allocations: 15.38 kB / 448.6 MB, free: 9.648 MB / 298.7 MB Notification: Performance of SimCode: time 1.783e-06/0.2009, allocations: 0 / 448.6 MB, free: 9.648 MB / 298.7 MB Notification: Performance of Templates: time 0.004915/0.2058, allocations: 0.845 MB / 449.5 MB, free: 8.805 MB / 298.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