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.001391/0.001391, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001614/0.001614, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.565/1.565, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3864/0.3877, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.004038/0.3919, allocations: 1.608 MB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.3932, allocations: 0.5493 MB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.3933, allocations: 3.938 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.611e-05/0.3934, allocations: 7.922 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001947/0.3936, allocations: 7.938 kB / 410.9 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004856/0.3941, allocations: 71.38 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.3943, allocations: 51.84 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.3944, allocations: 15.98 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.3946, allocations: 27.86 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.393e-05/0.3947, allocations: 19.86 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.3947, allocations: 4 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.748e-05/0.3947, allocations: 15.92 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.259e-05/0.3948, allocations: 19.92 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.088e-05/0.3949, allocations: 35.73 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.395, allocations: 67.73 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.395, allocations: 0 / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3951, allocations: 0 / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.3951, allocations: 0 / 411.3 MB, free: 15.01 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.0006755/0.3958, allocations: 384.7 kB / 411.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.3958, allocations: 8.031 kB / 411.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.278e-05/0.3959, allocations: 38.75 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.3961, allocations: 16.83 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.3964, allocations: 206.5 kB / 411.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.3965, allocations: 4.375 kB / 411.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.3965, allocations: 8.375 kB / 411.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.3969, allocations: 133.9 kB / 412 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.3969, allocations: 4 kB / 412 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.3969, allocations: 4 kB / 412 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.3969, allocations: 3.938 kB / 412 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.849e-05/0.397, allocations: 23.98 kB / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004851/0.3975, allocations: 278.6 kB / 412.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002753/0.3978, allocations: 156.9 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.789e-05/0.3979, allocations: 42.61 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.3979, allocations: 8 kB / 412.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.398, allocations: 34.55 kB / 412.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.398, allocations: 0 / 412.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003158/0.3983, allocations: 93.45 kB / 412.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.3984, allocations: 115 kB / 412.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.3986, allocations: 141.8 kB / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.3986, allocations: 25.7 kB / 412.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.392e-05/0.3987, allocations: 96.06 kB / 413 MB, free: 12.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.3987, allocations: 7.906 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.213e-05/0.3987, allocations: 21.62 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3989, allocations: 326.8 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.074e-05/0.3989, allocations: 12 kB / 413.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.656e-05/0.399, allocations: 44.28 kB / 413.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.3991, allocations: 68.14 kB / 413.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3992, allocations: 4 kB / 413.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001902/0.3993, allocations: 81.61 kB / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.3994, allocations: 8 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.3994, allocations: 0 / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.3994, allocations: 0 / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.114e-05/0.3995, allocations: 19.86 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.3995, allocations: 4 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.9e-05/0.3996, allocations: 8 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.3996, allocations: 4.125 kB / 413.6 MB, free: 12.29 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.0001077/0.3997, allocations: 125.7 kB / 413.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.867e-05/0.3998, allocations: 61.5 kB / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.006e-05/0.3998, allocations: 12.23 kB / 413.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3998, allocations: 7.938 kB / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.3999, allocations: 0 / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3999, allocations: 0 / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002042/0.4001, allocations: 181.6 kB / 414 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.4001, allocations: 4 kB / 414 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.208e-05/0.4001, allocations: 15.94 kB / 414 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4002, allocations: 0 / 414 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.4002, allocations: 0 / 414 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4002, allocations: 0 / 414 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4002, allocations: 7.984 kB / 414 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002816/0.4005, allocations: 189.3 kB / 414.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.151e-05/0.4006, allocations: 97 kB / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.4006, allocations: 4 kB / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.63e-05/0.4007, allocations: 0 / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/0.4007, allocations: 7.984 kB / 414.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-06/0.4007, allocations: 0 / 414.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.517e-05/0.4008, allocations: 113.5 kB / 414.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4008, allocations: 0 / 414.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002349/0.4011, allocations: 12 kB / 414.5 MB, free: 11.35 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.0006949/0.4018, allocations: 0.753 MB / 415.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001997/0.402, allocations: 52.16 kB / 415.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.402, allocations: 4 kB / 415.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.605e-05/0.402, allocations: 7.984 kB / 415.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/0.4025, allocations: 39.89 kB / 415.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.4042, allocations: 1.447 MB / 416.8 MB, free: 8.902 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.4046, allocations: 0.7002 MB / 417.5 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.483e-05/0.4046, allocations: 11.91 kB / 417.5 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/0.4047, allocations: 19.42 kB / 417.5 MB, free: 8.145 MB / 334.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4047, allocations: 4 kB / 417.5 MB, free: 8.141 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02034/0.4251, allocations: 1.813 MB / 419.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.228/8.653, allocations: 15.05 kB / 419.3 MB, free: 6.461 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.0.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