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.000783/0.000783, allocations: 91.97 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008311/0.0008312, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 227.7 MB / 246.8 MB, free: 9.668 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002178/0.0002178, allocations: 8 kB / 307.8 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.08962, allocations: 51.53 MB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001623/0.09128, allocations: 1.316 MB / 360.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008297/0.09213, allocations: 0.5338 MB / 361.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.632e-05/0.09221, allocations: 4 kB / 361.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.229e-05/0.09225, allocations: 3.938 kB / 361.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001123/0.09237, allocations: 7.875 kB / 361.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.09265, allocations: 67.81 kB / 361.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.071e-05/0.09275, allocations: 47.84 kB / 361.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.062e-05/0.09283, allocations: 11.98 kB / 361.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.682e-05/0.09294, allocations: 31.84 kB / 361.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.213e-05/0.093, allocations: 31.8 kB / 361.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.09302, allocations: 0 / 361.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.541e-05/0.09306, allocations: 4 kB / 361.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.016e-05/0.09311, allocations: 11.98 kB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.54e-05/0.09316, allocations: 53.45 kB / 361.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.09327, allocations: 63.77 kB / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.09328, allocations: 0 / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.09329, allocations: 0 / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.09329, allocations: 0 / 361.5 MB, free: 10.78 MB / 302.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.0004147/0.09371, allocations: 379.4 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.09375, allocations: 8.031 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.275e-05/0.09379, allocations: 38.75 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.09393, allocations: 24.77 kB / 362 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.09411, allocations: 196.1 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.7e-06/0.09412, allocations: 384 / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.264e-05/0.09414, allocations: 4.375 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002654/0.09441, allocations: 142 kB / 362.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.09443, allocations: 0 / 362.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.09444, allocations: 4 kB / 362.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.09445, allocations: 0 / 362.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.01e-05/0.09454, allocations: 31.92 kB / 362.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003015/0.09485, allocations: 282.5 kB / 362.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001912/0.09506, allocations: 160.8 kB / 362.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.453e-05/0.09514, allocations: 46.62 kB / 362.8 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.09516, allocations: 3.938 kB / 362.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.09519, allocations: 42.55 kB / 362.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.0952, allocations: 0 / 362.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.000273/0.09547, allocations: 97.69 kB / 363 MB, free: 9.105 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.09555, allocations: 114.7 kB / 363.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.09567, allocations: 148.5 kB / 363.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.09569, allocations: 29.7 kB / 363.3 MB, free: 8.781 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.653e-05/0.09573, allocations: 84.14 kB / 363.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.09575, allocations: 15.89 kB / 363.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.1e-05/0.09578, allocations: 9.719 kB / 363.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.09589, allocations: 322.8 kB / 363.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.95e-05/0.09594, allocations: 15.98 kB / 363.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.844e-05/0.09601, allocations: 48.28 kB / 363.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/0.09613, allocations: 68.22 kB / 363.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.09614, allocations: 0 / 363.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001535/0.0963, allocations: 93.45 kB / 363.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.09632, allocations: 8 kB / 363.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.09633, allocations: 0 / 363.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.09635, allocations: 7.922 kB / 363.9 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.35e-05/0.09641, allocations: 12.12 kB / 363.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.09643, allocations: 4 kB / 363.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.483e-05/0.09648, allocations: 7.938 kB / 363.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.0965, allocations: 7.984 kB / 364 MB, free: 8.035 MB / 302.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 9.009e-05/0.09659, allocations: 121.7 kB / 364.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.708e-05/0.09667, allocations: 57.59 kB / 364.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.082e-05/0.09671, allocations: 12.25 kB / 364.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.09672, allocations: 0 / 364.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.09673, allocations: 4 kB / 364.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.09674, allocations: 4 kB / 364.1 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000165/0.0969, allocations: 181.5 kB / 364.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.09691, allocations: 0 / 364.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.4e-05/0.09697, allocations: 15.92 kB / 364.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.09698, allocations: 0 / 364.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.097, allocations: 4 kB / 364.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.097, allocations: 0 / 364.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.09701, allocations: 0 / 364.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001869/0.0972, allocations: 201 kB / 364.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.539e-05/0.09726, allocations: 93 kB / 364.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.09728, allocations: 0 / 364.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.93e-05/0.09737, allocations: 8.047 kB / 364.6 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.224e-05/0.0974, allocations: 11.94 kB / 364.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.09742, allocations: 4 kB / 364.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.704e-05/0.09749, allocations: 113.8 kB / 364.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09749, allocations: 0 / 364.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.09772, allocations: 12 kB / 364.8 MB, free: 7.098 MB / 302.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.0004776/0.0982, allocations: 0.7455 MB / 365.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001442/0.09836, allocations: 44 kB / 365.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.09837, allocations: 7.938 kB / 365.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.252e-05/0.09842, allocations: 16.31 kB / 365.6 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.09877, allocations: 26.48 kB / 365.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.1, allocations: 1.507 MB / 367.1 MB, free: 4.605 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.1003, allocations: 0.6965 MB / 367.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.991e-05/0.1003, allocations: 4 kB / 367.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.367e-05/0.1004, allocations: 27.42 kB / 367.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1004, allocations: 0 / 367.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01034/0.1107, allocations: 1.538 MB / 369.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.111, allocations: 235.1 kB / 369.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/1.827, allocations: 0 / 369.6 MB, free: 2.23 MB / 302.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