Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001507/0.001507, allocations: 115.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001857/0.001857, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.996/1.996, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4253/0.4267, allocations: 50.54 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002908/0.4297, allocations: 1.589 MB / 411.5 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.4307, allocations: 0.5609 MB / 412.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.064e-05/0.4308, allocations: 4 kB / 412.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.812e-05/0.4309, allocations: 3.938 kB / 412.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001391/0.4311, allocations: 11.86 kB / 412.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003333/0.4314, allocations: 59.81 kB / 412.2 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001084/0.4315, allocations: 47.84 kB / 412.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.4316, allocations: 23.97 kB / 412.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.4318, allocations: 31.86 kB / 412.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.793e-05/0.4318, allocations: 27.84 kB / 412.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.581e-05/0.4319, allocations: 4 kB / 412.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.638e-05/0.4319, allocations: 4 kB / 412.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.142e-05/0.432, allocations: 19.86 kB / 412.3 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.728e-05/0.432, allocations: 31.8 kB / 412.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.4322, allocations: 63.73 kB / 412.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4322, allocations: 0 / 412.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4322, allocations: 3.938 kB / 412.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.4322, allocations: 0 / 412.4 MB, free: 15.09 MB / 334.1 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.0005457/0.4328, allocations: 388.3 kB / 412.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.4328, allocations: 8.031 kB / 412.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.433, allocations: 24.73 kB / 412.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.4332, allocations: 194.6 kB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.4333, allocations: 8.312 kB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.4333, allocations: 8.375 kB / 413 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.4336, allocations: 146 kB / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.4336, allocations: 0 / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.4336, allocations: 0 / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.4337, allocations: 0 / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.583e-05/0.4338, allocations: 35.92 kB / 413.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003432/0.4341, allocations: 270.6 kB / 413.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.4343, allocations: 160.8 kB / 413.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.958e-05/0.4344, allocations: 38.69 kB / 413.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.4345, allocations: 4 kB / 413.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.4345, allocations: 38.48 kB / 413.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.243e-06/0.4345, allocations: 0 / 413.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000281/0.4348, allocations: 97.52 kB / 413.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/0.4349, allocations: 110.8 kB / 413.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.435, allocations: 137.8 kB / 414.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.435, allocations: 25.7 kB / 414.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.297e-05/0.4351, allocations: 92.06 kB / 414.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.4351, allocations: 11.91 kB / 414.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.713e-05/0.4351, allocations: 17.97 kB / 414.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.4352, allocations: 330.8 kB / 414.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.994e-05/0.4353, allocations: 8 kB / 414.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.978e-05/0.4354, allocations: 52.22 kB / 414.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001126/0.4355, allocations: 64.2 kB / 414.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4355, allocations: 0 / 414.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001691/0.4357, allocations: 85.75 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.4357, allocations: 7.938 kB / 414.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.4357, allocations: 3.984 kB / 414.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.4357, allocations: 8.125 kB / 414.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.731e-05/0.4358, allocations: 15.98 kB / 414.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.4358, allocations: 0 / 414.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.72e-05/0.4359, allocations: 4 kB / 414.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.4359, allocations: 4 kB / 414.8 MB, free: 12.42 MB / 334.1 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.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.611e-05/0.436, allocations: 121.7 kB / 414.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.144e-05/0.4361, allocations: 57.53 kB / 415 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.156e-05/0.4361, allocations: 20.17 kB / 415 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4362, allocations: 0 / 415 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.4362, allocations: 4 kB / 415 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.4362, allocations: 4 kB / 415 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002136/0.4364, allocations: 185.5 kB / 415.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.4364, allocations: 0 / 415.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.673e-05/0.4365, allocations: 8 kB / 415.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.4365, allocations: 0 / 415.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.4365, allocations: 0 / 415.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/0.4365, allocations: 7.984 kB / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4365, allocations: 0 / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002175/0.4367, allocations: 197 kB / 415.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.546e-05/0.4368, allocations: 93 kB / 415.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.033e-05/0.4368, allocations: 4 kB / 415.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.308e-05/0.4369, allocations: 4 kB / 415.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.99e-05/0.4369, allocations: 0 / 415.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.208e-06/0.437, allocations: 7.984 kB / 415.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.191e-05/0.4371, allocations: 109.5 kB / 415.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4371, allocations: 0 / 415.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.4373, allocations: 12 kB / 415.6 MB, free: 11.48 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001088/0.4374, allocations: 107.2 kB / 415.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001889/0.4376, allocations: 47.8 kB / 415.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.4376, allocations: 0 / 415.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.775e-05/0.4377, allocations: 16.23 kB / 415.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.438, allocations: 35.58 kB / 415.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003862/0.4384, allocations: 214.8 kB / 416 MB, free: 11.03 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.4387, allocations: 0.6963 MB / 416.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.4388, allocations: 15.44 kB / 416.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4388, allocations: 4.125 kB / 416.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of Templates: time 0.002524/0.4413, allocations: 0.8978 MB / 417.6 MB, free: 9.391 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches