Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 84.31 kB / 22.21 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 168.4 kB / 25.61 MB, free: 8.898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9368/0.9368, allocations: 177.1 MB / 206 MB, free: 4.504 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.767e-06/3.767e-06, allocations: 0 / 274.2 MB, free: 4.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.272e-05/2.649e-05, allocations: 5.547 kB / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002033/0.002059, allocations: 1.632 MB / 275.8 MB, free: 2.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007338/0.002793, allocations: 0.5556 MB / 276.4 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.563e-05/0.002869, allocations: 0 / 276.4 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.195e-05/0.002921, allocations: 3.938 kB / 276.4 MB, free: 2.199 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.003055, allocations: 16.52 kB / 276.4 MB, free: 2.184 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002443/0.0033, allocations: 64.27 kB / 276.5 MB, free: 2.121 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.335e-05/0.003393, allocations: 48.48 kB / 276.5 MB, free: 2.074 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.436e-05/0.003477, allocations: 19.91 kB / 276.5 MB, free: 2.055 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.003589, allocations: 36.41 kB / 276.6 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.983e-05/0.003639, allocations: 16.91 kB / 276.6 MB, free: 2.004 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.003653, allocations: 4 kB / 276.6 MB, free: 2 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.867e-05/0.003691, allocations: 8 kB / 276.6 MB, free: 1.992 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.616e-05/0.003737, allocations: 16.55 kB / 276.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.42e-05/0.003762, allocations: 18.41 kB / 276.6 MB, free: 1.961 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.003881, allocations: 55.73 kB / 276.7 MB, free: 1.906 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.724e-06/0.003883, allocations: 0 / 276.7 MB, free: 1.906 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.003883, allocations: 0 / 276.7 MB, free: 1.906 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.003887, allocations: 0 / 276.7 MB, free: 1.906 MB / 250.7 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.0003801/0.004267, allocations: 416.1 kB / 277.1 MB, free: 1.465 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.004299, allocations: 8.031 kB / 277.1 MB, free: 1.457 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.004402, allocations: 22.78 kB / 277.1 MB, free: 1.438 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.004543, allocations: 144.4 kB / 277.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.437e-06/0.004552, allocations: 4.375 kB / 277.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.285e-06/0.00456, allocations: 4.906 kB / 277.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.004727, allocations: 145.9 kB / 277.4 MB, free: 1.09 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.004736, allocations: 8.125 kB / 277.4 MB, free: 1.082 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.004744, allocations: 4.375 kB / 277.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.00475, allocations: 3.938 kB / 277.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.977e-05/0.00477, allocations: 11.97 kB / 277.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002142/0.004984, allocations: 259.8 kB / 277.7 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.005096, allocations: 93.17 kB / 277.8 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.367e-05/0.00513, allocations: 35.19 kB / 277.8 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.005144, allocations: 0 / 277.8 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.005166, allocations: 41.39 kB / 277.9 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 8.12e-07/0.005167, allocations: 0 / 277.9 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001436/0.005311, allocations: 81.39 kB / 277.9 MB, free: 472 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.005366, allocations: 110.8 kB / 278.1 MB, free: 336 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.049e-05/0.005456, allocations: 197 kB / 278.2 MB, free: 124 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.027e-05/0.005466, allocations: 29.64 kB / 278.3 MB, free: 88 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.482e-05/0.005521, allocations: 138.9 kB / 278.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.581e-05/0.005537, allocations: 4.203 kB / 278.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.005566, allocations: 27.38 kB / 278.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.005678, allocations: 0.4923 MB / 278.9 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.148e-06/0.005687, allocations: 0 / 278.9 MB, free: 15.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.871e-05/0.005706, allocations: 23.36 kB / 279 MB, free: 15.37 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.368e-05/0.00574, allocations: 27.31 kB / 279 MB, free: 15.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.005742, allocations: 0 / 279 MB, free: 15.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.323e-05/0.005805, allocations: 57.58 kB / 279 MB, free: 15.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.005817, allocations: 7.938 kB / 279 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.005822, allocations: 0 / 279 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/0.005831, allocations: 32 / 279 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.838e-05/0.005879, allocations: 8 kB / 279.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.107e-06/0.005883, allocations: 3.984 kB / 279.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/0.005902, allocations: 4 kB / 279.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.005907, allocations: 0 / 279.1 MB, free: 15.25 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 6.856e-05/0.005976, allocations: 160.6 kB / 279.2 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/0.006024, allocations: 49.64 kB / 279.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.756e-05/0.006052, allocations: 20.59 kB / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.006055, allocations: 4 kB / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.006057, allocations: 0 / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.006062, allocations: 3.984 kB / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.9e-05/0.006161, allocations: 109.2 kB / 279.4 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.006163, allocations: 4 kB / 279.4 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.409e-05/0.006187, allocations: 7.984 kB / 279.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.006188, allocations: 4 kB / 279.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.88e-06/0.006193, allocations: 0 / 279.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.006194, allocations: 0 / 279.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.006196, allocations: 7.938 kB / 279.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.852e-05/0.006285, allocations: 215.2 kB / 279.6 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003262/0.006611, allocations: 27.83 kB / 279.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.006627, allocations: 0 / 279.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.444e-05/0.006661, allocations: 8.031 kB / 279.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.314e-05/0.006685, allocations: 7.938 kB / 279.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-06/0.006688, allocations: 3.984 kB / 279.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.807e-05/0.006737, allocations: 154.4 kB / 279.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006737, allocations: 0 / 279.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001534/0.00689, allocations: 4 kB / 279.8 MB, free: 14.4 MB / 266.7 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 7.121e-05/0.006961, allocations: 99.25 kB / 279.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.206e-05/0.007033, allocations: 31.61 kB / 280 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.21e-07/0.007034, allocations: 0 / 280 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.347e-05/0.007048, allocations: 11.75 kB / 280 MB, free: 14.24 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.007283, allocations: 33.34 kB / 280 MB, free: 14.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003665/0.00765, allocations: 199.7 kB / 280.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.743e-05/0.007687, allocations: 59.34 kB / 280.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.322e-05/0.00771, allocations: 4 kB / 280.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.117e-05/0.007771, allocations: 78.19 kB / 280.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of SimCode: time 4.1e-07/0.007772, allocations: 4.125 kB / 280.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of Templates: time 0.002223/0.009995, allocations: 0.7334 MB / 281.1 MB, free: 13.1 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5774384778924286]