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.0008673/0.0008673, allocations: 87.88 kB / 21.19 MB, free: 3.406 MB / 18.57 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.000882/0.000882, allocations: 141.1 kB / 24.54 MB, free: 60 kB / 18.57 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 0.9649/0.9649, allocations: 173.4 MB / 201.2 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] 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 1.343e-06/1.343e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.305e-05/2.44e-05, allocations: 2.312 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.005854/0.005879, allocations: 1.642 MB / 269.6 MB, free: 4.77 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007512/0.00663, allocations: 494.4 kB / 270.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.768e-05/0.006697, allocations: 7.938 kB / 270.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.287e-05/0.00674, allocations: 3.938 kB / 270.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.006855, allocations: 7.922 kB / 270.1 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002278/0.007083, allocations: 51.77 kB / 270.2 MB, free: 4.211 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.917e-05/0.007182, allocations: 55.83 kB / 270.3 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003109/0.01029, allocations: 8.188 kB / 270.3 MB, free: 4.148 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.0104, allocations: 39.83 kB / 270.3 MB, free: 4.109 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.698e-05/0.01046, allocations: 15.92 kB / 270.3 MB, free: 4.094 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.933e-05/0.01048, allocations: 4 kB / 270.3 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.25e-05/0.01049, allocations: 4 kB / 270.3 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.921e-05/0.01054, allocations: 15.92 kB / 270.3 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.571e-05/0.01058, allocations: 19.92 kB / 270.4 MB, free: 4.051 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001189/0.01069, allocations: 43.77 kB / 270.4 MB, free: 4.008 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.0107, allocations: 0 / 270.4 MB, free: 4.008 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.0107, allocations: 0 / 270.4 MB, free: 4.008 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.0107, allocations: 4 kB / 270.4 MB, free: 4.004 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.0004176/0.01112, allocations: 404.3 kB / 270.8 MB, free: 3.574 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.01116, allocations: 12.92 kB / 270.8 MB, free: 3.562 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.06e-05/0.0112, allocations: 12.84 kB / 270.8 MB, free: 3.551 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.01139, allocations: 144.4 kB / 271 MB, free: 3.383 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-06/0.0114, allocations: 384 / 271 MB, free: 3.383 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.01141, allocations: 8.375 kB / 271 MB, free: 3.375 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.0117, allocations: 157.2 kB / 271.1 MB, free: 3.191 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.01171, allocations: 192 / 271.1 MB, free: 3.191 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.01173, allocations: 4.125 kB / 271.1 MB, free: 3.188 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.01173, allocations: 0 / 271.1 MB, free: 3.188 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.749e-05/0.01177, allocations: 19.92 kB / 271.2 MB, free: 3.168 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003423/0.01211, allocations: 279.2 kB / 271.4 MB, free: 2.852 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.01228, allocations: 93.17 kB / 271.5 MB, free: 2.723 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.695e-05/0.01233, allocations: 43.11 kB / 271.6 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.01235, allocations: 8 kB / 271.6 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.01238, allocations: 41.33 kB / 271.6 MB, free: 2.609 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.01238, allocations: 0 / 271.6 MB, free: 2.609 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001879/0.01257, allocations: 69.58 kB / 271.7 MB, free: 2.535 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.624e-05/0.01264, allocations: 118.7 kB / 271.8 MB, free: 2.395 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.01277, allocations: 185.9 kB / 272 MB, free: 2.195 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.01278, allocations: 29.7 kB / 272 MB, free: 2.16 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.016e-05/0.01284, allocations: 138.8 kB / 272.1 MB, free: 2.02 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.01286, allocations: 7.938 kB / 272.1 MB, free: 2.012 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.852e-05/0.0129, allocations: 27.62 kB / 272.2 MB, free: 1.977 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.01306, allocations: 0.4884 MB / 272.7 MB, free: 1.477 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.3e-05/0.01308, allocations: 7.984 kB / 272.7 MB, free: 1.469 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.509e-05/0.01311, allocations: 19.38 kB / 272.7 MB, free: 1.441 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.609e-05/0.01315, allocations: 27.59 kB / 272.7 MB, free: 1.406 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.01315, allocations: 4 kB / 272.7 MB, free: 1.402 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.35e-05/0.01324, allocations: 57.56 kB / 272.8 MB, free: 1.34 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.01325, allocations: 8 kB / 272.8 MB, free: 1.332 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.01326, allocations: 3.984 kB / 272.8 MB, free: 1.328 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.01328, allocations: 32 / 272.8 MB, free: 1.328 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.612e-05/0.01333, allocations: 11.94 kB / 272.8 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.463e-06/0.01334, allocations: 0 / 272.8 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.527e-05/0.01336, allocations: 3.938 kB / 272.8 MB, free: 1.312 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.01337, allocations: 4 kB / 272.8 MB, free: 1.309 MB / 250.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 8.346e-05/0.01345, allocations: 160.6 kB / 273 MB, free: 1.141 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.281e-05/0.01352, allocations: 53.58 kB / 273 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.294e-05/0.01356, allocations: 20.27 kB / 273 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.01356, allocations: 0 / 273 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.01357, allocations: 4 kB / 273 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.01357, allocations: 0 / 273 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001473/0.01372, allocations: 132.6 kB / 273.2 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01372, allocations: 0 / 273.2 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.802e-05/0.01376, allocations: 19.92 kB / 273.2 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.01376, allocations: 3.938 kB / 273.2 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.01377, allocations: 0 / 273.2 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.01377, allocations: 4 kB / 273.2 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.01377, allocations: 0 / 273.2 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.01391, allocations: 223.3 kB / 273.4 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.324e-05/0.01394, allocations: 19.94 kB / 273.4 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.01396, allocations: 3.938 kB / 273.4 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.823e-05/0.01402, allocations: 7.984 kB / 273.4 MB, free: 0.582 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.199e-05/0.01406, allocations: 7.938 kB / 273.5 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.01406, allocations: 0 / 273.5 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.608e-05/0.01414, allocations: 150.3 kB / 273.6 MB, free: 440 kB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01414, allocations: 0 / 273.6 MB, free: 440 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002247/0.01436, allocations: 8 kB / 273.6 MB, free: 432 kB / 250.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 8.505e-05/0.01445, allocations: 99.23 kB / 273.7 MB, free: 324 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.01455, allocations: 31.61 kB / 273.7 MB, free: 288 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01455, allocations: 0 / 273.7 MB, free: 288 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.265e-05/0.01457, allocations: 15.75 kB / 273.7 MB, free: 268 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.0149, allocations: 21.42 kB / 273.8 MB, free: 244 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005596/0.01546, allocations: 195.7 kB / 274 MB, free: 12 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.37e-05/0.01553, allocations: 63.34 kB / 274 MB, free: 15.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.277e-05/0.01555, allocations: 336 / 274 MB, free: 15.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.413e-05/0.01558, allocations: 20.48 kB / 274 MB, free: 15.91 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01558, allocations: 128 / 274 MB, free: 15.91 MB / 266.7 MB Notification: Performance of Templates: time 0.002549/0.01813, allocations: 0.6836 MB / 274.7 MB, free: 15.25 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.7112795137800276]