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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 116.5 kB / 18.45 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001968/0.001968, allocations: 190.7 kB / 21.4 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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=5010,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=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 51.92 kB / 366.8 MB, free: 364 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09214/0.0936, allocations: 52.14 MB / 419 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002829/0.09642, allocations: 1.594 MB / 420.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008724/0.0973, allocations: 0.5025 MB / 421.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.045e-05/0.09737, allocations: 0 / 421.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.113e-05/0.09741, allocations: 3.938 kB / 421.1 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.09754, allocations: 11.88 kB / 421.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.09784, allocations: 59.73 kB / 421.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.09795, allocations: 43.92 kB / 421.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.078e-05/0.09804, allocations: 12.17 kB / 421.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.34e-05/0.09812, allocations: 39.78 kB / 421.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.926e-05/0.09818, allocations: 19.86 kB / 421.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.09819, allocations: 4 kB / 421.2 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.259e-05/0.09821, allocations: 4 kB / 421.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.982e-05/0.09825, allocations: 15.92 kB / 421.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.367e-05/0.0983, allocations: 27.81 kB / 421.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.09842, allocations: 59.67 kB / 421.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.09842, allocations: 0 / 421.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.09842, allocations: 4 kB / 421.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.09843, allocations: 0 / 421.4 MB, free: 9.707 MB / 350.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.0005023/0.09893, allocations: 391 kB / 421.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.09896, allocations: 8.031 kB / 421.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.099, allocations: 8.891 kB / 421.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.09924, allocations: 202.4 kB / 421.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.09925, allocations: 8.312 kB / 422 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.228e-05/0.09927, allocations: 4.375 kB / 422 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002967/0.09956, allocations: 138 kB / 422.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.09957, allocations: 0 / 422.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.09958, allocations: 0 / 422.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.09959, allocations: 0 / 422.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.525e-05/0.09968, allocations: 27.92 kB / 422.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003606/0.1, allocations: 286.6 kB / 422.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.1003, allocations: 160.8 kB / 422.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.891e-05/0.1004, allocations: 42.62 kB / 422.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.1004, allocations: 0 / 422.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.1004, allocations: 38.56 kB / 422.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.51e-07/0.1004, allocations: 0 / 422.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002825/0.1007, allocations: 97.73 kB / 422.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.698e-05/0.1008, allocations: 110.8 kB / 422.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.1009, allocations: 140.4 kB / 423 MB, free: 7.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.1009, allocations: 25.7 kB / 423 MB, free: 7.781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.29e-05/0.101, allocations: 92.14 kB / 423.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.101, allocations: 7.938 kB / 423.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-05/0.1011, allocations: 21.67 kB / 423.1 MB, free: 7.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1012, allocations: 326.8 kB / 423.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.468e-05/0.1012, allocations: 15.98 kB / 423.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.403e-05/0.1013, allocations: 48.27 kB / 423.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/0.1014, allocations: 60.22 kB / 423.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1014, allocations: 0 / 423.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001701/0.1016, allocations: 89.53 kB / 423.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1016, allocations: 4 kB / 423.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.1016, allocations: 0 / 423.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.1017, allocations: 4 kB / 423.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.646e-05/0.1017, allocations: 16.12 kB / 423.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.1017, allocations: 0 / 423.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.717e-05/0.1018, allocations: 15.94 kB / 423.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-06/0.1018, allocations: 4 kB / 423.7 MB, free: 7.035 MB / 350.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.000106/0.1019, allocations: 129.6 kB / 423.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.903e-05/0.102, allocations: 57.64 kB / 423.9 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.877e-05/0.102, allocations: 12.25 kB / 423.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.102, allocations: 0 / 423.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.102, allocations: 0 / 423.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.1021, allocations: 15.92 kB / 423.9 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002091/0.1023, allocations: 173.6 kB / 424.1 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1023, allocations: 4 kB / 424.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.999e-05/0.1023, allocations: 11.98 kB / 424.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1023, allocations: 0 / 424.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.1023, allocations: 288 / 424.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.313e-06/0.1023, allocations: 11.88 kB / 424.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1023, allocations: 0 / 424.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002263/0.1026, allocations: 193.1 kB / 424.3 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.574e-05/0.1026, allocations: 93.05 kB / 424.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.1027, allocations: 4 kB / 424.4 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.603e-05/0.1027, allocations: 7.984 kB / 424.4 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.038e-05/0.1028, allocations: 0 / 424.4 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.1028, allocations: 4 kB / 424.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.907e-05/0.1029, allocations: 107.2 kB / 424.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1029, allocations: 4 kB / 424.5 MB, free: 6.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000245/0.1031, allocations: 15.94 kB / 424.5 MB, free: 6.094 MB / 350.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.0001155/0.1032, allocations: 99.19 kB / 424.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001691/0.1034, allocations: 47.91 kB / 424.7 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1034, allocations: 0 / 424.7 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.619e-05/0.1034, allocations: 8.312 kB / 424.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.1038, allocations: 36.31 kB / 424.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000467/0.1042, allocations: 218.7 kB / 424.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.1046, allocations: 0.6961 MB / 425.6 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.1046, allocations: 11.44 kB / 425.6 MB, free: 4.914 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1046, allocations: 0 / 425.6 MB, free: 4.914 MB / 350.1 MB Notification: Performance of Templates: time 0.002601/0.1072, allocations: 0.8659 MB / 426.5 MB, free: 4.055 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.2591593051329255]