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.0007951/0.0007951, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003505/0.003505, allocations: 163 kB / 24.7 MB, free: 9.418 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.8824/0.8824, allocations: 177.1 MB / 205 MB, free: 5.723 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 1.573e-06/1.573e-06, allocations: 0 / 325.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.366e-05/2.523e-05, allocations: 3.266 kB / 325.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002098/0.002123, allocations: 1.624 MB / 327.5 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006791/0.002802, allocations: 0.5257 MB / 328 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.981e-05/0.002872, allocations: 7.938 kB / 328 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.33e-05/0.002915, allocations: 3.938 kB / 328 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.00305, allocations: 11.92 kB / 328 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.003339, allocations: 67.67 kB / 328.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001345/0.003473, allocations: 47.86 kB / 328.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.392e-05/0.003557, allocations: 11.98 kB / 328.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.003684, allocations: 43.83 kB / 328.2 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.692e-05/0.003731, allocations: 15.92 kB / 328.2 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.426e-05/0.003745, allocations: 4 kB / 328.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.188e-05/0.003777, allocations: 11.98 kB / 328.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.867e-05/0.003816, allocations: 15.92 kB / 328.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.638e-05/0.003842, allocations: 11.94 kB / 328.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.003958, allocations: 71.7 kB / 328.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.433e-06/0.003959, allocations: 0 / 328.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.00396, allocations: 4 kB / 328.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.003963, allocations: 0 / 328.3 MB, free: 12.8 MB / 298.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.000349/0.004312, allocations: 309.9 kB / 328.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.004344, allocations: 12.03 kB / 328.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.191e-05/0.004435, allocations: 16.88 kB / 328.6 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.004589, allocations: 145.5 kB / 328.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.813e-06/0.004596, allocations: 384 / 328.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.828e-06/0.004606, allocations: 8.375 kB / 328.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.004801, allocations: 138.4 kB / 328.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.004809, allocations: 192 / 328.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-06/0.004816, allocations: 384 / 328.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.004822, allocations: 7.938 kB / 328.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.991e-05/0.004872, allocations: 27.92 kB / 329 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002255/0.005097, allocations: 226.2 kB / 329.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.005218, allocations: 83.78 kB / 329.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.269e-05/0.005261, allocations: 42.61 kB / 329.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.005282, allocations: 3.938 kB / 329.3 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.005302, allocations: 42.5 kB / 329.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 8.42e-07/0.005303, allocations: 0 / 329.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001705/0.005473, allocations: 93.55 kB / 329.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.005521, allocations: 114.8 kB / 329.6 MB, free: 11.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.851e-05/0.005599, allocations: 145.8 kB / 329.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.00561, allocations: 29.7 kB / 329.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.246e-05/0.005642, allocations: 88.14 kB / 329.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.31e-05/0.005655, allocations: 7.953 kB / 329.8 MB, free: 11.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.486e-05/0.00568, allocations: 21.7 kB / 329.8 MB, free: 11.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.653e-05/0.005747, allocations: 310.8 kB / 330.1 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.443e-05/0.005771, allocations: 15.98 kB / 330.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.618e-05/0.005797, allocations: 25.7 kB / 330.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.975e-05/0.005847, allocations: 33.7 kB / 330.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.005849, allocations: 7.938 kB / 330.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.538e-05/0.005924, allocations: 69.52 kB / 330.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.005937, allocations: 11.98 kB / 330.3 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.00594, allocations: 0 / 330.3 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.807e-06/0.005949, allocations: 0 / 330.3 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.214e-05/0.005981, allocations: 4 kB / 330.3 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.576e-06/0.005985, allocations: 0 / 330.3 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.836e-05/0.006003, allocations: 4 kB / 330.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-06/0.006008, allocations: 0 / 330.3 MB, free: 10.55 MB / 298.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.014e-05/0.006068, allocations: 129.8 kB / 330.4 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.61e-05/0.006114, allocations: 57.58 kB / 330.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.367e-05/0.006138, allocations: 12.34 kB / 330.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.006141, allocations: 4 kB / 330.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.006144, allocations: 0 / 330.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.006146, allocations: 0 / 330.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.006248, allocations: 125.2 kB / 330.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.006249, allocations: 0 / 330.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.494e-05/0.006274, allocations: 11.98 kB / 330.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.006275, allocations: 0 / 330.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-06/0.006283, allocations: 11.94 kB / 330.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.02e-07/0.006283, allocations: 4 kB / 330.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.006284, allocations: 8.25 kB / 330.7 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001072/0.006391, allocations: 181.2 kB / 330.8 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.093e-05/0.006422, allocations: 27.86 kB / 330.9 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.006434, allocations: 3.938 kB / 330.9 MB, free: 9.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.609e-05/0.00647, allocations: 4 kB / 330.9 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.004e-05/0.00649, allocations: 0 / 330.9 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.006495, allocations: 7.984 kB / 330.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.639e-05/0.006542, allocations: 106.2 kB / 331 MB, free: 9.805 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.006542, allocations: 4 kB / 331 MB, free: 9.801 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001442/0.006686, allocations: 12 kB / 331 MB, free: 9.789 MB / 298.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 6.015e-05/0.006746, allocations: 103.2 kB / 331.1 MB, free: 9.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.978e-05/0.006826, allocations: 31.98 kB / 331.1 MB, free: 9.648 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-06/0.006827, allocations: 0 / 331.1 MB, free: 9.648 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.221e-05/0.006849, allocations: 15.92 kB / 331.2 MB, free: 9.633 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.00706, allocations: 28.02 kB / 331.2 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002419/0.007302, allocations: 228.7 kB / 331.4 MB, free: 9.344 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.583e-05/0.007358, allocations: 79.59 kB / 331.5 MB, free: 9.242 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.299e-05/0.007381, allocations: 12.5 kB / 331.5 MB, free: 9.23 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.007381, allocations: 0 / 331.5 MB, free: 9.23 MB / 298.7 MB Notification: Performance of Templates: time 0.001356/0.008737, allocations: 0.8879 MB / 332.4 MB, free: 8.348 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 4.033481433056295]