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.000849/0.000849, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.001006/0.001006, allocations: 156.9 kB / 23.94 MB, free: 0.6172 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 0.8749/0.8749, allocations: 177 MB / 204.1 MB, free: 5.742 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.128e-06/4.128e-06, allocations: 4 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.527e-05/1.94e-05, allocations: 7.062 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001854/0.001874, allocations: 1.625 MB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007287/0.002602, allocations: 0.5142 MB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.917e-05/0.002682, allocations: 3.938 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.483e-05/0.002726, allocations: 7.922 kB / 326.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.002861, allocations: 15.88 kB / 326.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.003144, allocations: 67.67 kB / 326.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.232e-05/0.003236, allocations: 55.78 kB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.492e-05/0.003321, allocations: 8 kB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.003425, allocations: 43.83 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.641e-05/0.003472, allocations: 19.92 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.003485, allocations: 0 / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.435e-05/0.003519, allocations: 8 kB / 326.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.098e-05/0.00356, allocations: 15.97 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.13e-05/0.003591, allocations: 15.94 kB / 326.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001232/0.003715, allocations: 63.72 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.003717, allocations: 8 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.003718, allocations: 0 / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.003722, allocations: 0 / 327 MB, free: 13.39 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.0003572/0.004079, allocations: 313.9 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.004114, allocations: 11.98 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.758e-05/0.004142, allocations: 34.75 kB / 327.3 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.138e-05/0.004233, allocations: 20.88 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.0044, allocations: 137.5 kB / 327.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.004412, allocations: 12.38 kB / 327.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.004422, allocations: 4.375 kB / 327.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.004641, allocations: 130.4 kB / 327.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.004648, allocations: 192 / 327.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.004657, allocations: 4.125 kB / 327.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.004662, allocations: 0 / 327.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.965e-05/0.004711, allocations: 31.86 kB / 327.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002762/0.004988, allocations: 245.7 kB / 327.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.005128, allocations: 79.78 kB / 328 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.782e-05/0.005175, allocations: 46.56 kB / 328 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.005195, allocations: 0 / 328 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.338e-05/0.005278, allocations: 38.5 kB / 328.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 6.21e-07/0.005279, allocations: 0 / 328.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001854/0.005464, allocations: 101.8 kB / 328.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.005516, allocations: 114.8 kB / 328.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.611e-05/0.005602, allocations: 144.5 kB / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.278e-06/0.005611, allocations: 29.7 kB / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.185e-05/0.005643, allocations: 88.12 kB / 328.5 MB, free: 11.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.00566, allocations: 15.89 kB / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.837e-05/0.005688, allocations: 17.7 kB / 328.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.839e-05/0.005767, allocations: 318.8 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.838e-05/0.005795, allocations: 15.98 kB / 328.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.884e-05/0.005824, allocations: 17.72 kB / 328.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.842e-05/0.005883, allocations: 49.72 kB / 329 MB, free: 11.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.005885, allocations: 0 / 329 MB, free: 11.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.808e-05/0.005964, allocations: 69.52 kB / 329 MB, free: 11.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.005976, allocations: 8 kB / 329 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.005981, allocations: 0 / 329 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.005993, allocations: 0 / 329 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.022e-05/0.006033, allocations: 7.984 kB / 329.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.006037, allocations: 0 / 329.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.976e-05/0.006057, allocations: 8.031 kB / 329.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.006064, allocations: 0 / 329.1 MB, free: 11.05 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.171e-05/0.006126, allocations: 121.8 kB / 329.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.497e-05/0.006171, allocations: 57.52 kB / 329.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.688e-05/0.006198, allocations: 12.34 kB / 329.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.0062, allocations: 4 kB / 329.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.006203, allocations: 0 / 329.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.006206, allocations: 0 / 329.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001182/0.006324, allocations: 152.6 kB / 329.4 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.006325, allocations: 0 / 329.4 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.645e-05/0.006352, allocations: 11.98 kB / 329.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.006354, allocations: 11.94 kB / 329.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.006362, allocations: 0 / 329.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.006362, allocations: 0 / 329.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.006363, allocations: 0 / 329.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001162/0.00648, allocations: 189.1 kB / 329.6 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.037e-05/0.00651, allocations: 19.94 kB / 329.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.006524, allocations: 384 / 329.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.498e-05/0.006559, allocations: 4 kB / 329.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.533e-05/0.006584, allocations: 3.984 kB / 329.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-06/0.006588, allocations: 8 kB / 329.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.775e-05/0.006635, allocations: 111.2 kB / 329.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006635, allocations: 4 kB / 329.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002169/0.006852, allocations: 4 kB / 329.8 MB, free: 10.27 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 0.0003305/0.007183, allocations: 0.7531 MB / 330.5 MB, free: 9.484 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.61e-05/0.007279, allocations: 39.92 kB / 330.6 MB, free: 9.445 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.00728, allocations: 0 / 330.6 MB, free: 9.445 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.083e-05/0.007301, allocations: 12.11 kB / 330.6 MB, free: 9.434 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002402/0.007541, allocations: 34.41 kB / 330.6 MB, free: 9.406 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.008579, allocations: 1.39 MB / 332 MB, free: 7.914 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.699e-05/0.008646, allocations: 79.61 kB / 332.1 MB, free: 7.812 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.743e-05/0.008674, allocations: 8.125 kB / 332.1 MB, free: 7.805 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.525e-05/0.008719, allocations: 16.48 kB / 332.1 MB, free: 7.789 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.00872, allocations: 0 / 332.1 MB, free: 7.789 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01354/0.02226, allocations: 2.454 MB / 334.5 MB, free: 5.453 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.495/6.517, allocations: 48 / 334.5 MB, free: 5.453 MB / 298.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.13360839150846]