Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001087/0.001087, allocations: 86.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001237/0.001237, allocations: 169.1 kB / 24.82 MB, free: 8.934 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.064/1.064, allocations: 177 MB / 205.1 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 273.3 MB, free: 1.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.379e-05, allocations: 2.312 kB / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002678/0.002702, allocations: 1.645 MB / 275 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004052/0.006754, allocations: 0.5491 MB / 275.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.006859, allocations: 7.938 kB / 275.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.813e-05/0.006907, allocations: 3.938 kB / 275.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001417/0.007049, allocations: 11.86 kB / 275.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003059/0.007355, allocations: 71.69 kB / 275.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.00746, allocations: 47.84 kB / 275.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.784e-05/0.007548, allocations: 11.98 kB / 275.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.007676, allocations: 39.91 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.242e-05/0.007728, allocations: 19.91 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.007745, allocations: 4 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.36e-05/0.007789, allocations: 8 kB / 275.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.754e-05/0.007836, allocations: 15.92 kB / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.57e-05/0.007862, allocations: 15.92 kB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001354/0.007998, allocations: 55.7 kB / 275.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.008, allocations: 0 / 275.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.008001, allocations: 0 / 275.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.008006, allocations: 4 kB / 275.9 MB, free: 14.68 MB / 266.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.0004226/0.008429, allocations: 412.2 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.008475, allocations: 15.98 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.008602, allocations: 20.89 kB / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.00877, allocations: 147.9 kB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.00878, allocations: 384 / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.008791, allocations: 8.312 kB / 276.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.009016, allocations: 149.2 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.009024, allocations: 192 / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.009035, allocations: 4.375 kB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.009044, allocations: 3.938 kB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.385e-05/0.009068, allocations: 11.92 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003176/0.01224, allocations: 259.8 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001605/0.0124, allocations: 93.23 kB / 277 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.271e-05/0.01244, allocations: 39.11 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.01246, allocations: 4 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.01249, allocations: 41.33 kB / 277 MB, free: 13.31 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 3.407e-06/0.01249, allocations: 0 / 277 MB, free: 13.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001763/0.01267, allocations: 77.48 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.01273, allocations: 110.8 kB / 277.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.897e-05/0.01282, allocations: 193.9 kB / 277.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.01284, allocations: 25.7 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.01289, allocations: 134.9 kB / 277.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.01292, allocations: 7.953 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.88e-05/0.01295, allocations: 31.56 kB / 277.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.0131, allocations: 0.4884 MB / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.182e-05/0.01311, allocations: 3.938 kB / 278.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.174e-05/0.01313, allocations: 23.36 kB / 278.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.819e-05/0.01317, allocations: 31.36 kB / 278.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.01317, allocations: 0 / 278.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.138e-05/0.01324, allocations: 57.62 kB / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.01326, allocations: 10.59 kB / 278.2 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.01327, allocations: 0 / 278.2 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.01328, allocations: 0 / 278.2 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.771e-05/0.01335, allocations: 8.031 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.01335, allocations: 0 / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.115e-05/0.01337, allocations: 4 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.01338, allocations: 0 / 278.2 MB, free: 12.02 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 9.553e-05/0.01347, allocations: 164.5 kB / 278.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.131e-05/0.01353, allocations: 49.59 kB / 278.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.675e-05/0.01356, allocations: 20.27 kB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.01357, allocations: 0 / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.01357, allocations: 4 kB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.01357, allocations: 0 / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.0137, allocations: 113.2 kB / 278.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.0137, allocations: 4 kB / 278.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.976e-05/0.01373, allocations: 11.98 kB / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.01374, allocations: 4 kB / 278.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.01374, allocations: 0 / 278.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.01374, allocations: 0 / 278.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.01375, allocations: 7.938 kB / 278.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001143/0.01386, allocations: 207.2 kB / 278.8 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.576e-05/0.0139, allocations: 15.89 kB / 278.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.01391, allocations: 7.984 kB / 278.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.395e-05/0.01395, allocations: 4.031 kB / 278.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.01399, allocations: 12.31 kB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.01399, allocations: 0 / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.58e-05/0.01405, allocations: 146.2 kB / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01405, allocations: 4 kB / 279 MB, free: 11.19 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000146/0.01419, allocations: 4 kB / 279 MB, free: 11.19 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 0.0001192/0.01431, allocations: 107.2 kB / 279.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.461e-05/0.0144, allocations: 23.67 kB / 279.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.0144, allocations: 0 / 279.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.473e-05/0.01441, allocations: 19.69 kB / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.01468, allocations: 25.36 kB / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004499/0.01513, allocations: 203.6 kB / 279.4 MB, free: 10.76 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.186e-05/0.01517, allocations: 67.33 kB / 279.4 MB, free: 10.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.534e-05/0.01519, allocations: 8 kB / 279.4 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.487e-05/0.01525, allocations: 74.2 kB / 279.5 MB, free: 10.59 MB / 266.7 MB Notification: Performance of SimCode: time 1.322e-06/0.01525, allocations: 4.125 kB / 279.5 MB, free: 10.59 MB / 266.7 MB Notification: Performance of Templates: time 0.002555/0.0178, allocations: 0.7232 MB / 280.2 MB, free: 9.883 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.689214951824397]