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.001568/0.001568, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00157/0.00157, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.634/1.634, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001417, allocations: 63.73 kB / 307.1 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.112, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003381/0.1154, allocations: 1.591 MB / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.1165, allocations: 0.5532 MB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.1167, allocations: 4 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.308e-05/0.1167, allocations: 11.86 kB / 359.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.1169, allocations: 7.938 kB / 359.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004006/0.1173, allocations: 71.67 kB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.1174, allocations: 43.92 kB / 359.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.1176, allocations: 27.95 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.1177, allocations: 35.78 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.757e-05/0.1178, allocations: 15.92 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.1178, allocations: 7.938 kB / 360 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.041e-05/0.1179, allocations: 12 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.165e-05/0.1179, allocations: 11.98 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.091e-05/0.118, allocations: 27.75 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.1181, allocations: 71.7 kB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.1182, allocations: 4 kB / 360.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1182, allocations: 4 kB / 360.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1182, allocations: 0 / 360.1 MB, free: 11.49 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.0005262/0.1187, allocations: 383.3 kB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1188, allocations: 8.031 kB / 360.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.284e-05/0.1188, allocations: 42.73 kB / 360.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.119, allocations: 16.83 kB / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001987/0.1192, allocations: 196.1 kB / 360.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.927e-06/0.1192, allocations: 384 / 360.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.356e-05/0.1192, allocations: 12.38 kB / 360.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.1196, allocations: 130 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1196, allocations: 0 / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.1196, allocations: 4 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.1196, allocations: 4 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.1197, allocations: 31.91 kB / 360.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003363/0.1201, allocations: 274.6 kB / 361.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.1203, allocations: 160.8 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.379e-05/0.1204, allocations: 46.62 kB / 361.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.1204, allocations: 7.922 kB / 361.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.1204, allocations: 30.56 kB / 361.4 MB, free: 9.934 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.173e-06/0.1204, allocations: 4 kB / 361.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002855/0.1207, allocations: 97.5 kB / 361.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.65e-05/0.1208, allocations: 114.7 kB / 361.6 MB, free: 9.691 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.1209, allocations: 140.2 kB / 361.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.121, allocations: 25.7 kB / 361.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.121, allocations: 96.38 kB / 361.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.121, allocations: 7.906 kB / 361.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/0.1211, allocations: 21.72 kB / 361.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1212, allocations: 322.8 kB / 362.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.529e-05/0.1213, allocations: 15.98 kB / 362.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.063e-05/0.1213, allocations: 44.28 kB / 362.3 MB, free: 8.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.1214, allocations: 64.39 kB / 362.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1215, allocations: 4 kB / 362.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001683/0.1216, allocations: 89.58 kB / 362.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.1217, allocations: 8 kB / 362.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1217, allocations: 0 / 362.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1217, allocations: 4 kB / 362.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.632e-05/0.1218, allocations: 11.98 kB / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.1218, allocations: 0 / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.928e-05/0.1218, allocations: 4 kB / 362.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.1219, 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 8.867e-05/0.1219, allocations: 133.6 kB / 362.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.399e-05/0.122, allocations: 57.59 kB / 362.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.698e-05/0.1221, allocations: 16.25 kB / 362.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.1221, allocations: 0 / 362.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.1221, allocations: 4 kB / 362.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1221, allocations: 4 kB / 362.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.1223, allocations: 181.5 kB / 362.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1223, allocations: 0 / 362.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.933e-05/0.1224, allocations: 11.94 kB / 362.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1224, allocations: 3.984 kB / 362.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.1224, allocations: 4 kB / 362.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1224, allocations: 0 / 362.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1224, allocations: 4 kB / 362.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002142/0.1226, allocations: 193 kB / 363.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.917e-05/0.1227, allocations: 93 kB / 363.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.1227, allocations: 0 / 363.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.233e-05/0.1228, allocations: 4 kB / 363.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.187e-05/0.1229, allocations: 7.984 kB / 363.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.1229, allocations: 4 kB / 363.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.846e-05/0.1229, allocations: 110.1 kB / 363.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1229, allocations: 0 / 363.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.1232, allocations: 12 kB / 363.3 MB, free: 7.84 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.0005349/0.1237, allocations: 0.7453 MB / 364 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001637/0.1239, allocations: 51.86 kB / 364.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1239, allocations: 0 / 364.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.708e-05/0.124, allocations: 12.36 kB / 364.1 MB, free: 7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004197/0.1244, allocations: 28.08 kB / 364.1 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.1259, allocations: 1.449 MB / 365.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.1262, allocations: 0.7002 MB / 366.3 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.019e-05/0.1263, allocations: 7.969 kB / 366.3 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.828e-05/0.1263, allocations: 23.31 kB / 366.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1263, allocations: 0 / 366.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02404/0.1504, allocations: 1.759 MB / 368.1 MB, free: 3.016 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.956/8.107, allocations: 11.28 kB / 368.1 MB, free: 3.004 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 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.csv","/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) "Error: Could not read variable clockToSquareWave.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv. Warning: Get data of variable clockToSquareWave.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv failed! " Variables in the reference:time,sample1.y,clockToSquareWave.y Variables in the result:time,clockToSquareWave.u,sample1.y,sine.y,sine.amplitude,sine.f