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.001248/0.001248, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.0015, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 61.16 kB / 307.1 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1111, allocations: 50.52 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003231/0.1144, allocations: 1.601 MB / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000989/0.1154, allocations: 0.5531 MB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.342e-05/0.1155, allocations: 4 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.333e-05/0.1156, allocations: 3.938 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.1157, allocations: 11.86 kB / 359.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003514/0.1161, allocations: 75.73 kB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.1162, allocations: 51.86 kB / 359.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.1163, allocations: 19.97 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.1164, allocations: 27.8 kB / 359.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.834e-05/0.1165, allocations: 27.84 kB / 360 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.579e-05/0.1165, allocations: 4 kB / 360 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.416e-05/0.1166, allocations: 8 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.549e-05/0.1166, allocations: 19.92 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.271e-05/0.1167, allocations: 27.81 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.1168, allocations: 67.72 kB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1168, allocations: 0 / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1168, allocations: 0 / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1169, allocations: 0 / 360.1 MB, free: 11.5 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.000479/0.1173, allocations: 383.3 kB / 360.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1174, allocations: 8.031 kB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.1174, allocations: 38.73 kB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001493/0.1176, allocations: 16.84 kB / 360.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001974/0.1178, allocations: 208 kB / 360.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.386e-06/0.1178, allocations: 384 / 360.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.1178, allocations: 8.375 kB / 360.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.1181, allocations: 133.9 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.1181, allocations: 4 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.1182, allocations: 4 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.1182, allocations: 0 / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.312e-05/0.1183, allocations: 35.84 kB / 360.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003183/0.1186, allocations: 278.6 kB / 361.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.1188, allocations: 156.8 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.22e-05/0.1189, allocations: 38.69 kB / 361.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.1189, allocations: 7.984 kB / 361.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.1189, allocations: 38.5 kB / 361.4 MB, free: 9.934 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.213e-06/0.1189, allocations: 0 / 361.4 MB, free: 9.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002725/0.1192, allocations: 93.52 kB / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.1193, allocations: 114.7 kB / 361.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.1194, allocations: 140.5 kB / 361.8 MB, free: 9.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.1194, allocations: 33.64 kB / 361.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.304e-05/0.1195, allocations: 92.12 kB / 361.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.1195, allocations: 7.906 kB / 361.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.1196, allocations: 17.72 kB / 361.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.1197, allocations: 326.8 kB / 362.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.469e-05/0.1198, allocations: 15.98 kB / 362.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.159e-05/0.1198, allocations: 52.27 kB / 362.3 MB, free: 8.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.12, allocations: 56.22 kB / 362.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.12, allocations: 3.938 kB / 362.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001617/0.1201, allocations: 93.45 kB / 362.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.1202, allocations: 8 kB / 362.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.1202, allocations: 0 / 362.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.1202, allocations: 4 kB / 362.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.881e-05/0.1203, allocations: 11.98 kB / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1203, allocations: 0 / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.781e-05/0.1203, allocations: 4 kB / 362.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.1203, allocations: 4 kB / 362.5 MB, free: 8.777 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.476e-05/0.1204, allocations: 133.8 kB / 362.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.608e-05/0.1205, allocations: 53.61 kB / 362.7 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.632e-05/0.1206, allocations: 16.23 kB / 362.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1206, allocations: 0 / 362.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1206, allocations: 0 / 362.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.1206, allocations: 4.281 kB / 362.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.1208, allocations: 181.5 kB / 362.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1208, allocations: 0 / 362.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.649e-05/0.1209, allocations: 8 kB / 362.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.1209, allocations: 7.922 kB / 362.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.1209, allocations: 11.98 kB / 362.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.1209, allocations: 4 kB / 362.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.1209, allocations: 3.938 kB / 362.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001993/0.1211, allocations: 185.1 kB / 363.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.929e-05/0.1212, allocations: 97 kB / 363.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.1212, allocations: 4 kB / 363.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.033e-05/0.1213, allocations: 4 kB / 363.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.786e-05/0.1213, allocations: 0 / 363.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.1213, allocations: 7.984 kB / 363.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.446e-05/0.1214, allocations: 105.8 kB / 363.3 MB, free: 7.855 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1214, allocations: 0 / 363.3 MB, free: 7.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002362/0.1217, allocations: 12 kB / 363.3 MB, free: 7.844 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.00058/0.1222, allocations: 0.7452 MB / 364 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001705/0.1224, allocations: 51.91 kB / 364.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.1224, allocations: 8.312 kB / 364.1 MB, free: 7.008 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.669e-05/0.1225, allocations: 15.92 kB / 364.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004167/0.1229, allocations: 27.95 kB / 364.1 MB, free: 6.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.1245, allocations: 1.451 MB / 365.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.1248, allocations: 0.6924 MB / 366.3 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.694e-05/0.1248, allocations: 3.984 kB / 366.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.004e-05/0.1249, allocations: 19.44 kB / 366.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1249, allocations: 0 / 366.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01657/0.1415, allocations: 1.759 MB / 368.1 MB, free: 3.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.765/7.907, allocations: 7.422 kB / 368.1 MB, free: 3.012 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