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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001543/0.001543, allocations: 115.8 kB / 19.18 MB, free: 3.883 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001525/0.001525, allocations: 208.9 kB / 22.13 MB, free: 0.9297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.536/1.536, allocations: 230.4 MB / 255.4 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] 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=5010,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=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "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.001942/0.001942, allocations: 71.83 kB / 374.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1092, allocations: 53.31 MB / 428.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003055/0.1122, allocations: 1.615 MB / 429.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.1133, allocations: 0.5571 MB / 430.2 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.1134, allocations: 3.938 kB / 430.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.376e-05/0.1135, allocations: 7.922 kB / 430.3 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.1136, allocations: 11.88 kB / 430.3 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000327/0.1139, allocations: 67.8 kB / 430.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.114, allocations: 59.78 kB / 430.4 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.962e-05/0.1141, allocations: 8 kB / 430.4 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.1142, allocations: 27.91 kB / 430.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.848e-05/0.1143, allocations: 23.86 kB / 430.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.503e-05/0.1143, allocations: 4 kB / 430.4 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.024e-05/0.1143, allocations: 11.98 kB / 430.5 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.505e-05/0.1144, allocations: 11.94 kB / 430.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.487e-05/0.1144, allocations: 31.8 kB / 430.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.1146, allocations: 67.61 kB / 430.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.1146, allocations: 0 / 430.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1146, allocations: 4 kB / 430.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1146, allocations: 0 / 430.6 MB, free: 1.816 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.0005635/0.1152, allocations: 391 kB / 431 MB, free: 1.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.1152, allocations: 12.03 kB / 431 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.1153, allocations: 16.88 kB / 431 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002651/0.1156, allocations: 202.6 kB / 431.2 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.1156, allocations: 4.375 kB / 431.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.1156, allocations: 12.31 kB / 431.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002922/0.1159, allocations: 138.1 kB / 431.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1159, allocations: 0 / 431.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.1159, allocations: 0 / 431.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.1159, allocations: 4 kB / 431.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.468e-05/0.116, allocations: 23.98 kB / 431.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003829/0.1164, allocations: 282.5 kB / 431.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/0.1166, allocations: 160.9 kB / 431.8 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.635e-05/0.1167, allocations: 34.62 kB / 431.8 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.1167, allocations: 0 / 431.8 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.1168, allocations: 38.55 kB / 431.9 MB, free: 308 kB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.41e-07/0.1168, allocations: 8 kB / 431.9 MB, free: 300 kB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002717/0.117, allocations: 89.5 kB / 432 MB, free: 204 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.487e-05/0.1171, allocations: 106.8 kB / 432.1 MB, free: 72 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1955/0.3127, allocations: 140.3 kB / 432.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.3127, allocations: 31.58 kB / 432.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.749e-05/0.3127, allocations: 91.05 kB / 432.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.3127, allocations: 10.02 kB / 432.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.615e-05/0.3128, allocations: 26.61 kB / 432.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.7e-05/0.3129, allocations: 320.5 kB / 432.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.83e-05/0.3129, allocations: 16.42 kB / 432.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.766e-05/0.313, allocations: 45.86 kB / 432.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001238/0.3131, allocations: 65.34 kB / 432.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3131, allocations: 2.219 kB / 432.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001956/0.3133, allocations: 81.84 kB / 432.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.3133, allocations: 6.531 kB / 432.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.3133, allocations: 1.219 kB / 432.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.3134, allocations: 4.875 kB / 432.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.678e-05/0.3135, allocations: 16.52 kB / 432.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.3135, allocations: 2.453 kB / 432.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.794e-05/0.3135, allocations: 6.391 kB / 432.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.3135, allocations: 3.266 kB / 432.9 MB, free: 10.88 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 7.274e-05/0.3136, allocations: 123.3 kB / 433 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.591e-05/0.3137, allocations: 56.02 kB / 433.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.807e-05/0.3137, allocations: 17.41 kB / 433.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3137, allocations: 5.375 kB / 433.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3137, allocations: 2.859 kB / 433.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.3137, allocations: 1.406 kB / 433.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.3139, allocations: 177.9 kB / 433.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3139, allocations: 0.6875 kB / 433.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.942e-05/0.314, allocations: 10.53 kB / 433.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/0.314, allocations: 2.234 kB / 433.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.314, allocations: 11.36 kB / 433.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.314, allocations: 2.375 kB / 433.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.314, allocations: 0.5156 kB / 433.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001592/0.3142, allocations: 184.3 kB / 433.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.961e-05/0.3142, allocations: 98.75 kB / 433.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.3142, allocations: 5.344 kB / 433.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.239e-05/0.3143, allocations: 2.438 kB / 433.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.75e-05/0.3143, allocations: 10.19 kB / 433.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.3143, allocations: 6.516 kB / 433.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.414e-05/0.3144, allocations: 110.8 kB / 433.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3144, allocations: 4.469 kB / 433.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002416/0.3146, allocations: 14.19 kB / 433.7 MB, free: 10.2 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 9.531e-05/0.3147, allocations: 99.59 kB / 433.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001705/0.3149, allocations: 44.67 kB / 433.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3149, allocations: 0.875 kB / 433.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.22e-05/0.3149, allocations: 17.58 kB / 433.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.3153, allocations: 26.78 kB / 433.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003272/0.3156, allocations: 218.6 kB / 434.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000131/0.3157, allocations: 0.6979 MB / 434.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.212e-05/0.3158, allocations: 14.59 kB / 434.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3158, allocations: 0 / 434.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of Templates: time 0.002471/0.3182, allocations: 0.8932 MB / 435.8 MB, free: 9.207 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.225820478022797]