Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 115.5 kB / 17.7 MB, free: 5.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001971/0.001971, allocations: 188 kB / 18.63 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 47.17 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1061, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003084/0.1092, allocations: 1.577 MB / 353.1 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009114/0.1102, allocations: 498.7 kB / 353.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.417e-05/0.1103, allocations: 7.875 kB / 353.6 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.799e-05/0.1103, allocations: 7.938 kB / 353.6 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001362/0.1105, allocations: 11.92 kB / 353.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003003/0.1108, allocations: 51.83 kB / 353.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.1109, allocations: 47.84 kB / 353.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.111, allocations: 16.17 kB / 353.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.959e-05/0.1111, allocations: 27.86 kB / 353.7 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.971e-05/0.1112, allocations: 23.91 kB / 353.8 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.1112, allocations: 7.938 kB / 353.8 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.364e-05/0.1112, allocations: 4 kB / 353.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.508e-05/0.1113, allocations: 19.94 kB / 353.8 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.685e-05/0.1114, allocations: 31.73 kB / 353.8 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001211/0.1115, allocations: 55.8 kB / 353.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1115, allocations: 0 / 353.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1115, allocations: 0 / 353.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.281e-06/0.1115, allocations: 0 / 353.9 MB, free: 1.312 MB / 286.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.0005084/0.112, allocations: 390.9 kB / 354.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.1121, allocations: 12.03 kB / 354.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.938e-05/0.1121, allocations: 8.844 kB / 354.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/0.1124, allocations: 208 kB / 354.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.1124, allocations: 384 / 354.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.1124, allocations: 4.375 kB / 354.5 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.1127, allocations: 138 kB / 354.6 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.1127, allocations: 0 / 354.6 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.1128, allocations: 0 / 354.6 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1128, allocations: 0 / 354.6 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.971e-05/0.1129, allocations: 27.92 kB / 354.7 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003617/0.1132, allocations: 286.5 kB / 354.9 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.1135, allocations: 156.8 kB / 355.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.726e-05/0.1136, allocations: 38.69 kB / 355.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.1136, allocations: 8 kB / 355.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.1136, allocations: 38.5 kB / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.1136, allocations: 0 / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002785/0.1139, allocations: 93.5 kB / 355.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.585e-05/0.114, allocations: 106.8 kB / 355.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.1141, allocations: 142.4 kB / 355.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.1142, allocations: 29.7 kB / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.601e-05/0.1142, allocations: 92.08 kB / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.1142, allocations: 7.891 kB / 355.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.132e-05/0.1143, allocations: 29.7 kB / 355.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1144, allocations: 314.8 kB / 356 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.353e-05/0.1145, allocations: 19.92 kB / 356 MB, free: 14.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.749e-05/0.1145, allocations: 48.28 kB / 356 MB, free: 14.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001156/0.1147, allocations: 60.22 kB / 356.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1147, allocations: 0 / 356.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001604/0.1148, allocations: 93.45 kB / 356.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.1149, allocations: 4 kB / 356.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1149, allocations: 4 kB / 356.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.1149, allocations: 7.984 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.7e-05/0.115, allocations: 8 kB / 356.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.115, allocations: 4 kB / 356.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.525e-05/0.115, allocations: 0 / 356.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.1151, allocations: 7.984 kB / 356.2 MB, free: 14.64 MB / 302.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.000117/0.1152, allocations: 133.8 kB / 356.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.144e-05/0.1153, allocations: 57.47 kB / 356.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.091e-05/0.1153, allocations: 12.25 kB / 356.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.1153, allocations: 0 / 356.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.1153, allocations: 4 kB / 356.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.1154, allocations: 0 / 356.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001971/0.1156, allocations: 181.5 kB / 356.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1156, allocations: 288 / 356.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.841e-05/0.1156, allocations: 11.98 kB / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1156, allocations: 4 kB / 356.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.1157, allocations: 8 kB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1157, allocations: 0 / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1157, allocations: 0 / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002279/0.1159, allocations: 193 kB / 356.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.57e-05/0.116, allocations: 96.94 kB / 356.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.116, allocations: 4 kB / 356.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.631e-05/0.1161, allocations: 7.984 kB / 356.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.362e-05/0.1161, allocations: 0 / 356.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.1162, allocations: 4 kB / 356.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.259e-05/0.1162, allocations: 114.2 kB / 357 MB, free: 13.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1162, allocations: 3.938 kB / 357 MB, free: 13.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002386/0.1165, allocations: 8 kB / 357 MB, free: 13.7 MB / 302.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.0001128/0.1166, allocations: 103.2 kB / 357.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001685/0.1168, allocations: 51.84 kB / 357.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1168, allocations: 0 / 357.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.294e-05/0.1168, allocations: 12 kB / 357.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003488/0.1172, allocations: 24.02 kB / 357.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003996/0.1176, allocations: 196.7 kB / 357.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.1179, allocations: 0.7002 MB / 358.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.531e-05/0.118, allocations: 4.062 kB / 358.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.979e-05/0.118, allocations: 11.44 kB / 358.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.118, allocations: 0 / 358.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of Templates: time 0.003033/0.121, allocations: 0.6404 MB / 358.8 MB, free: 11.91 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches