Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009446/0.0009446, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 226.6 MB / 244.4 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007892/0.0007893, allocations: 87.34 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002467/0.0002467, allocations: 8 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2071, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001358/0.2085, allocations: 1.296 MB / 408.8 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006653/0.2092, allocations: 0.5084 MB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.612e-05/0.2093, allocations: 7.938 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.822e-05/0.2093, allocations: 3.938 kB / 409.3 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.2094, allocations: 4.719 kB / 409.3 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.2097, allocations: 49.89 kB / 409.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.698e-05/0.2098, allocations: 43.84 kB / 409.4 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.197e-05/0.2099, allocations: 12.17 kB / 409.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.449e-05/0.21, allocations: 24.55 kB / 409.4 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.146e-05/0.21, allocations: 23.86 kB / 409.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.21, allocations: 0.8438 kB / 409.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.546e-05/0.2101, allocations: 7.984 kB / 409.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.852e-05/0.2101, allocations: 14.27 kB / 409.5 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.33e-05/0.2101, allocations: 33.7 kB / 409.5 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.796e-05/0.2102, allocations: 43.91 kB / 409.6 MB, free: 25.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2102, allocations: 0 / 409.6 MB, free: 25.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2102, allocations: 3.938 kB / 409.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.2103, allocations: 0 / 409.6 MB, free: 25.75 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.0003503/0.2106, allocations: 373.9 kB / 409.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.2106, allocations: 8.031 kB / 409.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.2108, allocations: 20.45 kB / 410 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.2109, allocations: 193.8 kB / 410.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.2109, allocations: 15.89 kB / 410.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.211, allocations: 6.969 kB / 410.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002419/0.2112, allocations: 137.8 kB / 410.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.2112, allocations: 0 / 410.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.2112, allocations: 0 / 410.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.2113, allocations: 0 / 410.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.498e-05/0.2113, allocations: 31.97 kB / 410.3 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002494/0.2116, allocations: 275.9 kB / 410.6 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001705/0.2118, allocations: 164.9 kB / 410.8 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.332e-05/0.2119, allocations: 38.58 kB / 410.8 MB, free: 24.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.2119, allocations: 7.984 kB / 410.8 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.229e-05/0.2119, allocations: 34.56 kB / 410.9 MB, free: 24.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.2119, allocations: 0 / 410.9 MB, free: 24.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002428/0.2122, allocations: 101.4 kB / 411 MB, free: 24.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.2122, allocations: 111.1 kB / 411.1 MB, free: 24.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.771e-05/0.2123, allocations: 138.2 kB / 411.2 MB, free: 23.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.135e-06/0.2123, allocations: 25.7 kB / 411.2 MB, free: 23.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.709e-05/0.2123, allocations: 96.3 kB / 411.3 MB, free: 23.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.368e-05/0.2124, allocations: 11.84 kB / 411.3 MB, free: 23.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/0.2124, allocations: 0 / 411.3 MB, free: 23.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.258e-05/0.2124, allocations: 318.8 kB / 411.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.781e-05/0.2125, allocations: 15.98 kB / 411.7 MB, free: 23.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-05/0.2125, allocations: 48.28 kB / 411.7 MB, free: 23.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.4e-05/0.2126, allocations: 31.92 kB / 411.7 MB, free: 23.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2126, allocations: 0 / 411.7 MB, free: 23.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001389/0.2127, allocations: 89.52 kB / 411.8 MB, free: 23.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.2128, allocations: 4 kB / 411.8 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.2128, allocations: 0 / 411.8 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.2128, allocations: 7.938 kB / 411.8 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.52e-05/0.2128, allocations: 15.92 kB / 411.8 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.2129, allocations: 0 / 411.8 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.682e-05/0.2129, allocations: 8.125 kB / 411.9 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.2129, allocations: 8 kB / 411.9 MB, free: 23.16 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 8.039e-05/0.213, allocations: 126 kB / 412 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.34e-05/0.2131, allocations: 53.53 kB / 412 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.955e-05/0.2131, allocations: 16.23 kB / 412.1 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.2131, allocations: 4 kB / 412.1 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2131, allocations: 3.938 kB / 412.1 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2131, allocations: 0 / 412.1 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.2133, allocations: 181.5 kB / 412.2 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2133, allocations: 4 kB / 412.2 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.495e-05/0.2133, allocations: 12 kB / 412.3 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2134, allocations: 4 kB / 412.3 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.2134, allocations: 0 / 412.3 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2134, allocations: 0 / 412.3 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2134, allocations: 7.984 kB / 412.3 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001464/0.2135, allocations: 193 kB / 412.5 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.734e-05/0.2136, allocations: 93 kB / 412.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.2136, allocations: 4 kB / 412.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.959e-05/0.2137, allocations: 4.062 kB / 412.6 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.768e-05/0.2137, allocations: 8 kB / 412.6 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.2137, allocations: 3.984 kB / 412.6 MB, free: 22.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.529e-05/0.2138, allocations: 110.4 kB / 412.7 MB, free: 22.24 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2138, allocations: 4 kB / 412.7 MB, free: 22.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002054/0.214, allocations: 4 kB / 412.7 MB, free: 22.23 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 6.934e-05/0.2141, allocations: 103.2 kB / 412.8 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001355/0.2142, allocations: 47.91 kB / 412.8 MB, free: 22.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2142, allocations: 0 / 412.8 MB, free: 22.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.24e-05/0.2143, allocations: 28.17 kB / 412.9 MB, free: 22.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.2146, allocations: 24.53 kB / 412.9 MB, free: 22.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002708/0.2149, allocations: 240.7 kB / 413.1 MB, free: 21.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/0.215, allocations: 0.7004 MB / 413.8 MB, free: 21.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.799e-05/0.215, allocations: 11.44 kB / 413.8 MB, free: 21 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.215, allocations: 0 / 413.8 MB, free: 21 MB / 298.7 MB Notification: Performance of Templates: time 0.001673/0.2167, allocations: 0.8521 MB / 414.7 MB, free: 20.16 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches