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.001557/0.001557, allocations: 117.9 kB / 21.18 MB, free: 0.6289 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.00172/0.00172, allocations: 202.8 kB / 24.46 MB, free: 3.902 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.439/1.439, allocations: 230.4 MB / 258.1 MB, free: 8.148 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.001929/0.001929, allocations: 75.83 kB / 378.7 MB, free: 2.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2808, allocations: 53.31 MB / 432.1 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003099/0.2839, allocations: 1.616 MB / 433.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.2851, allocations: 0.5649 MB / 434.2 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.228e-05/0.2851, allocations: 4 kB / 434.2 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.142e-05/0.2852, allocations: 7.875 kB / 434.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.2853, allocations: 11.92 kB / 434.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.2857, allocations: 62.19 kB / 434.3 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001223/0.2858, allocations: 51.78 kB / 434.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.2859, allocations: 16 kB / 434.4 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.286, allocations: 35.78 kB / 434.4 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.454e-05/0.2861, allocations: 19.91 kB / 434.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.2861, allocations: 4 kB / 434.4 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.426e-05/0.2862, allocations: 15.94 kB / 434.5 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.685e-05/0.2862, allocations: 8 kB / 434.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.249e-05/0.2863, allocations: 39.72 kB / 434.5 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.2864, allocations: 61.22 kB / 434.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.2864, allocations: 0 / 434.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2864, allocations: 3.938 kB / 434.6 MB, free: 4.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.2864, allocations: 0 / 434.6 MB, free: 4.859 MB / 334.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.0005683/0.287, allocations: 391 kB / 435 MB, free: 4.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.287, allocations: 12.03 kB / 435 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.2872, allocations: 16.88 kB / 435 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.2875, allocations: 200.1 kB / 435.2 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.2875, allocations: 4.375 kB / 435.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.2875, allocations: 12.36 kB / 435.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.2878, allocations: 138.2 kB / 435.3 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.2878, allocations: 0 / 435.3 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.2878, allocations: 11.94 kB / 435.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2878, allocations: 0 / 435.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.881e-05/0.2879, allocations: 27.92 kB / 435.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003913/0.2883, allocations: 278.6 kB / 435.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.2886, allocations: 161 kB / 435.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.273e-05/0.2887, allocations: 42.5 kB / 435.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.2887, allocations: 0 / 435.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.2887, allocations: 34.55 kB / 435.9 MB, free: 3.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.51e-07/0.2887, allocations: 0 / 435.9 MB, free: 3.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002874/0.289, allocations: 97.56 kB / 436 MB, free: 3.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.2891, allocations: 114.7 kB / 436.1 MB, free: 3.094 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.2892, allocations: 141.1 kB / 436.2 MB, free: 2.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.2892, allocations: 25.7 kB / 436.2 MB, free: 2.918 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.294e-05/0.2893, allocations: 96.12 kB / 436.3 MB, free: 2.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.2893, allocations: 3.953 kB / 436.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.2894, allocations: 21.97 kB / 436.4 MB, free: 2.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.2895, allocations: 326.8 kB / 436.7 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.125e-05/0.2896, allocations: 12 kB / 436.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.881e-05/0.2896, allocations: 44.28 kB / 436.7 MB, free: 2.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.2898, allocations: 64.2 kB / 436.8 MB, free: 2.312 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2898, allocations: 0 / 436.8 MB, free: 2.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000175/0.2899, allocations: 93.5 kB / 436.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.2899, allocations: 4 kB / 436.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.29, allocations: 128 / 436.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.29, allocations: 8 kB / 436.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.247e-05/0.29, allocations: 15.98 kB / 436.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.29, allocations: 0 / 436.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.191e-05/0.2901, allocations: 7.953 kB / 436.9 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.2901, allocations: 4 kB / 436.9 MB, free: 2.176 MB / 334.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.0001007/0.2902, allocations: 129.8 kB / 437.1 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-05/0.2903, allocations: 57.62 kB / 437.1 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.098e-05/0.2903, allocations: 20.23 kB / 437.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.2903, allocations: 4 kB / 437.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2903, allocations: 0 / 437.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2904, allocations: 4 kB / 437.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002034/0.2906, allocations: 177.6 kB / 437.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2906, allocations: 3.938 kB / 437.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.472e-05/0.2906, allocations: 8 kB / 437.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.2906, allocations: 0 / 437.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.2906, allocations: 3.938 kB / 437.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.2906, allocations: 7.984 kB / 437.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2906, allocations: 0 / 437.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002187/0.2908, allocations: 189.1 kB / 437.5 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.497e-05/0.2909, allocations: 93.05 kB / 437.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.2909, allocations: 4 kB / 437.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.148e-05/0.291, allocations: 4 kB / 437.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.125e-05/0.291, allocations: 0 / 437.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.2911, allocations: 11.98 kB / 437.6 MB, free: 1.363 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.618e-05/0.2911, allocations: 103.3 kB / 437.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2911, allocations: 3.938 kB / 437.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.2914, allocations: 12 kB / 437.7 MB, free: 1.246 MB / 334.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.0001291/0.2915, allocations: 103.2 kB / 437.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001708/0.2917, allocations: 43.86 kB / 437.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2917, allocations: 256 / 437.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.925e-05/0.2917, allocations: 15.98 kB / 437.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.2921, allocations: 36 kB / 437.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000417/0.2925, allocations: 222.7 kB / 438.2 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.2928, allocations: 0.6963 MB / 438.9 MB, free: 60 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.832e-05/0.2929, allocations: 15.56 kB / 438.9 MB, free: 44 kB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2929, allocations: 4 kB / 438.9 MB, free: 40 kB / 334.1 MB Notification: Performance of Templates: time 0.002773/0.2957, allocations: 0.8799 MB / 439.8 MB, free: 15.16 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: 6.829388164915144]