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.001056/0.001056, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0009465/0.0009465, allocations: 139.5 kB / 24.97 MB, free: 8.359 MB / 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.9691/0.9691, allocations: 173.4 MB / 201.5 MB, free: 9.316 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.202e-06/1.202e-06, allocations: 0 / 268.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.773e-05/1.894e-05, allocations: 6.25 kB / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.0044/0.004419, allocations: 1.635 MB / 269.7 MB, free: 5.055 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007363/0.005155, allocations: 486.5 kB / 270.2 MB, free: 4.574 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.887e-05/0.005234, allocations: 3.938 kB / 270.2 MB, free: 4.57 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.8e-05/0.005282, allocations: 7.922 kB / 270.2 MB, free: 4.562 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.005403, allocations: 15.88 kB / 270.2 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002359/0.005639, allocations: 51.75 kB / 270.3 MB, free: 4.496 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.005739, allocations: 51.78 kB / 270.3 MB, free: 4.445 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.471e-05/0.005824, allocations: 8.188 kB / 270.3 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.055e-05/0.005895, allocations: 35.89 kB / 270.4 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.66e-05/0.005941, allocations: 15.98 kB / 270.4 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.922e-05/0.005961, allocations: 4 kB / 270.4 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.066e-05/0.005971, allocations: 4 kB / 270.4 MB, free: 4.379 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.354e-05/0.006015, allocations: 19.91 kB / 270.4 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.785e-05/0.006053, allocations: 15.94 kB / 270.4 MB, free: 4.344 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.006161, allocations: 51.75 kB / 270.5 MB, free: 4.293 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.006163, allocations: 0 / 270.5 MB, free: 4.293 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.006164, allocations: 0 / 270.5 MB, free: 4.293 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.006168, allocations: 0 / 270.5 MB, free: 4.293 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.003419/0.009586, allocations: 404.2 kB / 270.9 MB, free: 3.863 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.009626, allocations: 12.92 kB / 270.9 MB, free: 3.852 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.538e-05/0.009671, allocations: 12.84 kB / 270.9 MB, free: 3.84 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.009849, allocations: 148.4 kB / 271 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.009861, allocations: 4.375 kB / 271 MB, free: 3.664 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.009872, allocations: 8.375 kB / 271.1 MB, free: 3.656 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002546/0.01013, allocations: 149.3 kB / 271.2 MB, free: 3.48 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.01013, allocations: 4.125 kB / 271.2 MB, free: 3.477 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.01014, allocations: 4.125 kB / 271.2 MB, free: 3.473 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.01015, allocations: 4 kB / 271.2 MB, free: 3.469 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.161e-05/0.01018, allocations: 11.98 kB / 271.2 MB, free: 3.457 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002985/0.01048, allocations: 283.2 kB / 271.5 MB, free: 3.137 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.01064, allocations: 97.23 kB / 271.6 MB, free: 3.004 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.819e-05/0.01069, allocations: 39.11 kB / 271.6 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.01071, allocations: 0 / 271.6 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.01073, allocations: 41.33 kB / 271.7 MB, free: 2.902 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.01073, allocations: 0 / 271.7 MB, free: 2.902 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001837/0.01092, allocations: 77.5 kB / 271.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.131e-05/0.01098, allocations: 106.8 kB / 271.8 MB, free: 2.691 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.01109, allocations: 194.1 kB / 272 MB, free: 2.484 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.0111, allocations: 33.7 kB / 272.1 MB, free: 2.445 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.01115, allocations: 142.8 kB / 272.2 MB, free: 2.301 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.01117, allocations: 7.953 kB / 272.2 MB, free: 2.293 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-05/0.01121, allocations: 23.38 kB / 272.2 MB, free: 2.262 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.01133, allocations: 496.1 kB / 272.7 MB, free: 1.766 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.577e-05/0.01135, allocations: 4 kB / 272.7 MB, free: 1.762 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.455e-05/0.01137, allocations: 23.38 kB / 272.8 MB, free: 1.73 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.454e-05/0.01142, allocations: 35.3 kB / 272.8 MB, free: 1.688 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01142, allocations: 0 / 272.8 MB, free: 1.688 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.022e-05/0.0115, allocations: 61.58 kB / 272.8 MB, free: 1.621 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.01151, allocations: 7.938 kB / 272.9 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.01152, allocations: 0 / 272.9 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.01153, allocations: 0 / 272.9 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.871e-05/0.01158, allocations: 4 kB / 272.9 MB, free: 1.609 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.738e-06/0.01158, allocations: 0 / 272.9 MB, free: 1.609 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.607e-05/0.01161, allocations: 7.938 kB / 272.9 MB, free: 1.602 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.01162, allocations: 0 / 272.9 MB, free: 1.602 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 7.314e-05/0.01169, allocations: 164.8 kB / 273 MB, free: 1.43 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.425e-05/0.01175, allocations: 57.58 kB / 273.1 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.226e-05/0.01179, allocations: 12.33 kB / 273.1 MB, free: 1.348 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.01179, allocations: 8.031 kB / 273.1 MB, free: 1.34 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.01179, allocations: 3.938 kB / 273.1 MB, free: 1.336 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.0118, allocations: 0 / 273.1 MB, free: 1.336 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.01193, allocations: 136.6 kB / 273.2 MB, free: 1.168 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.01193, allocations: 0 / 273.2 MB, free: 1.168 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.124e-05/0.01196, allocations: 8 kB / 273.2 MB, free: 1.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.01197, allocations: 3.938 kB / 273.3 MB, free: 1.156 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.01198, allocations: 8 kB / 273.3 MB, free: 1.148 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.01198, allocations: 0 / 273.3 MB, free: 1.148 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01198, allocations: 0 / 273.3 MB, free: 1.148 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000133/0.01211, allocations: 235.2 kB / 273.5 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.117e-05/0.01214, allocations: 15.94 kB / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.01216, allocations: 7.938 kB / 273.5 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003063/0.01523, allocations: 4 kB / 273.5 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.01526, allocations: 0 / 273.5 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.01527, allocations: 7.938 kB / 273.5 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.314e-05/0.01533, allocations: 146.2 kB / 273.7 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01533, allocations: 0 / 273.7 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002244/0.01555, allocations: 12 kB / 273.7 MB, free: 0.7031 MB / 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 7.644e-05/0.01563, allocations: 95.25 kB / 273.8 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.189e-05/0.01572, allocations: 35.61 kB / 273.8 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01572, allocations: 0 / 273.8 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.717e-05/0.01574, allocations: 11.69 kB / 273.8 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/0.01606, allocations: 32.2 kB / 273.9 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004866/0.01655, allocations: 191.8 kB / 274 MB, free: 304 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.316e-05/0.01659, allocations: 63.34 kB / 274.1 MB, free: 220 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.696e-05/0.01662, allocations: 12.17 kB / 274.1 MB, free: 208 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.032e-05/0.01665, allocations: 8.5 kB / 274.1 MB, free: 200 kB / 250.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01665, allocations: 0 / 274.1 MB, free: 200 kB / 250.7 MB Notification: Performance of Templates: time 0.007355/0.024, allocations: 0.6784 MB / 274.8 MB, free: 15.53 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.6663131800014526]