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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001297/0.001297, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.62/1.62, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 59.91 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3878, allocations: 50.55 MB / 408.8 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.0041/0.392, allocations: 1.604 MB / 410.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.3934, allocations: 0.5454 MB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.3935, allocations: 11.94 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.545e-05/0.3936, allocations: 7.922 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.3938, allocations: 3.938 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004843/0.3943, allocations: 71.36 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00015/0.3945, allocations: 51.84 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.3946, allocations: 15.94 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.3948, allocations: 31.84 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.771e-05/0.3949, allocations: 23.92 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/0.395, allocations: 4 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.349e-05/0.3951, allocations: 11.94 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.658e-05/0.3952, allocations: 11.98 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.69e-05/0.3953, allocations: 35.73 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.3955, allocations: 66.62 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.3956, allocations: 0 / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.524e-06/0.3956, allocations: 0 / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.3956, allocations: 3.938 kB / 411.3 MB, free: 14.93 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.0008502/0.3964, allocations: 395 kB / 411.7 MB, free: 14.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.252e-05/0.3965, allocations: 8.031 kB / 411.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.289e-05/0.3966, allocations: 34.75 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002262/0.3968, allocations: 20.88 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.3973, allocations: 198.6 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.3973, allocations: 4.375 kB / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.3974, allocations: 4.375 kB / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004397/0.3978, allocations: 145.9 kB / 412.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.3978, allocations: 0 / 412.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.3979, allocations: 7.938 kB / 412.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.3979, allocations: 4 kB / 412.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001011/0.398, allocations: 19.98 kB / 412.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005472/0.3985, allocations: 286.5 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.3989, allocations: 160.9 kB / 412.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.399, allocations: 38.62 kB / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.399, allocations: 0 / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.534e-05/0.3991, allocations: 38.55 kB / 412.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.3991, allocations: 0 / 412.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003783/0.3995, allocations: 97.5 kB / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.3996, allocations: 114.8 kB / 412.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.3998, allocations: 133.8 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.3998, allocations: 25.7 kB / 413 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.927e-05/0.3999, allocations: 96.12 kB / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.808e-05/0.3999, allocations: 11.88 kB / 413.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-05/0.4, allocations: 25.67 kB / 413.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002077/0.4002, allocations: 327 kB / 413.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.484e-05/0.4003, allocations: 12 kB / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.772e-05/0.4004, allocations: 44.28 kB / 413.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.4005, allocations: 72.14 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4005, allocations: 0 / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001866/0.4007, allocations: 81.61 kB / 413.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.4007, allocations: 4 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.4008, allocations: 4 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/0.4008, allocations: 4.125 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.584e-05/0.4009, allocations: 15.92 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.4009, allocations: 4 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.743e-05/0.401, allocations: 3.953 kB / 413.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.401, allocations: 4 kB / 413.7 MB, free: 12.2 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.0001288/0.4011, allocations: 125.7 kB / 413.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.4012, allocations: 57.86 kB / 413.9 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.958e-05/0.4013, allocations: 20.17 kB / 413.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4013, allocations: 0 / 413.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.4013, allocations: 8 kB / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4013, allocations: 0 / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.4016, allocations: 177.6 kB / 414.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4016, allocations: 3.938 kB / 414.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.686e-05/0.4017, allocations: 8 kB / 414.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.4017, allocations: 0 / 414.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.4017, allocations: 4 kB / 414.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.4017, allocations: 3.984 kB / 414.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4017, allocations: 0 / 414.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003069/0.4021, allocations: 201.1 kB / 414.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.888e-05/0.4022, allocations: 89.05 kB / 414.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.4022, allocations: 8 kB / 414.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.852e-05/0.4023, allocations: 0 / 414.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/0.4023, allocations: 4 kB / 414.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.4024, allocations: 3.984 kB / 414.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000123/0.4025, allocations: 113.5 kB / 414.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4025, allocations: 0 / 414.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000251/0.4028, allocations: 12 kB / 414.5 MB, free: 11.26 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.0008801/0.4036, allocations: 0.7492 MB / 415.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002124/0.4039, allocations: 43.91 kB / 415.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4039, allocations: 0 / 415.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.176e-05/0.4039, allocations: 15.98 kB / 415.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.4044, allocations: 35.94 kB / 415.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.4061, allocations: 1.459 MB / 416.8 MB, free: 8.812 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.4065, allocations: 0.6963 MB / 417.5 MB, free: 8.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.559e-05/0.4066, allocations: 7.781 kB / 417.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.896e-05/0.4066, allocations: 27.36 kB / 417.6 MB, free: 8.055 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4066, allocations: 0 / 417.6 MB, free: 8.055 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.4315, allocations: 1.79 MB / 419.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.542/8.974, allocations: 11.92 kB / 419.4 MB, free: 6.398 MB / 334.1 MB (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 --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) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches