Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00124/0.00124, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.444/1.444, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 59.91 kB / 359.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2332, allocations: 50.55 MB / 410.2 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002865/0.2361, allocations: 1.6 MB / 411.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.2371, allocations: 0.5571 MB / 412.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.71e-05/0.2371, allocations: 4 kB / 412.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.767e-05/0.2372, allocations: 7.875 kB / 412.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.2373, allocations: 7.922 kB / 412.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.2376, allocations: 59.81 kB / 412.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.2377, allocations: 55.78 kB / 412.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.433e-05/0.2378, allocations: 11.98 kB / 412.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.238, allocations: 31.86 kB / 412.6 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.609e-05/0.238, allocations: 27.84 kB / 412.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.238, allocations: 4 kB / 412.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.627e-05/0.2381, allocations: 8 kB / 412.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.566e-05/0.2381, allocations: 15.92 kB / 412.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.151e-05/0.2382, allocations: 27.75 kB / 412.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.2383, allocations: 75.45 kB / 412.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2383, allocations: 0 / 412.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2383, allocations: 0 / 412.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.2383, allocations: 0 / 412.7 MB, free: 14.82 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.0005261/0.2389, allocations: 391 kB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.2389, allocations: 8.031 kB / 413.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.239, allocations: 24.86 kB / 413.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.2393, allocations: 204.1 kB / 413.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.2393, allocations: 4.375 kB / 413.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.268e-05/0.2393, allocations: 384 / 413.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.2396, allocations: 138.2 kB / 413.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2396, allocations: 0 / 413.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.2396, allocations: 0 / 413.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.2396, allocations: 7.938 kB / 413.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.728e-05/0.2397, allocations: 23.92 kB / 413.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003502/0.2401, allocations: 286.6 kB / 413.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.2403, allocations: 152.8 kB / 413.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.438e-05/0.2404, allocations: 46.62 kB / 414 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.2404, allocations: 4 kB / 414 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.2404, allocations: 30.56 kB / 414 MB, free: 13.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.2404, allocations: 0 / 414 MB, free: 13.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002775/0.2407, allocations: 93.73 kB / 414.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.715e-05/0.2408, allocations: 114.8 kB / 414.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.2409, allocations: 148.4 kB / 414.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.2409, allocations: 25.7 kB / 414.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.634e-05/0.241, allocations: 84.14 kB / 414.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.444e-05/0.241, allocations: 11.95 kB / 414.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.2411, allocations: 25.66 kB / 414.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.2412, allocations: 322.8 kB / 414.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.047e-05/0.2412, allocations: 15.98 kB / 414.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.721e-05/0.2413, allocations: 40.28 kB / 414.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.2414, allocations: 68.22 kB / 414.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.2414, allocations: 0 / 414.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001694/0.2416, allocations: 81.55 kB / 415 MB, free: 12.19 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.2416, allocations: 8 kB / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.2416, allocations: 3.984 kB / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.2416, allocations: 0 / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.106e-05/0.2417, allocations: 8.125 kB / 415 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.2417, allocations: 8 kB / 415 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.002e-05/0.2418, allocations: 19.88 kB / 415.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.2418, allocations: 4.234 kB / 415.1 MB, free: 12.14 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 0.0001063/0.2419, allocations: 133.6 kB / 415.2 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.304e-05/0.242, allocations: 53.64 kB / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.481e-05/0.242, allocations: 8.25 kB / 415.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.242, allocations: 4 kB / 415.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.242, allocations: 0 / 415.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.242, allocations: 0 / 415.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002713/0.2423, allocations: 189.6 kB / 415.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.2423, allocations: 4 kB / 415.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.692e-05/0.2424, allocations: 15.92 kB / 415.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2424, allocations: 3.938 kB / 415.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.2424, allocations: 0 / 415.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2424, allocations: 0 / 415.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2424, allocations: 4 kB / 415.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/0.2426, allocations: 185.1 kB / 415.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.223e-05/0.2427, allocations: 93.05 kB / 415.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.2427, allocations: 4 kB / 415.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.2428, allocations: 7.984 kB / 415.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.194e-05/0.2429, allocations: 4 kB / 415.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-06/0.2429, allocations: 0 / 415.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.841e-05/0.2429, allocations: 115.2 kB / 415.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2429, allocations: 4 kB / 415.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004602/0.2434, allocations: 8 kB / 415.9 MB, free: 11.2 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.0001153/0.2435, allocations: 103.2 kB / 416 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001589/0.2437, allocations: 47.84 kB / 416 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2437, allocations: 0 / 416 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.859e-05/0.2437, allocations: 8 kB / 416 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.2442, allocations: 32.31 kB / 416.1 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003819/0.2446, allocations: 200.9 kB / 416.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.2449, allocations: 0.6924 MB / 417 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.138e-05/0.2449, allocations: 7.781 kB / 417 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.116e-05/0.245, allocations: 15.42 kB / 417 MB, free: 10.03 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.245, allocations: 4 kB / 417 MB, free: 10.03 MB / 334.1 MB Notification: Performance of Templates: time 0.002887/0.2479, allocations: 0.6597 MB / 417.6 MB, free: 9.41 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches