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.001728/0.001728, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00195/0.00195, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.607/1.607, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4466/0.448, 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.004125/0.4521, allocations: 1.6 MB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.4536, allocations: 0.5571 MB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.4538, allocations: 0 / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.601e-05/0.4539, allocations: 7.875 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.454, allocations: 7.938 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004957/0.4546, allocations: 71.73 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001521/0.4547, allocations: 47.84 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.4549, allocations: 12 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.4551, allocations: 35.84 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.4552, allocations: 19.86 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.051e-05/0.4553, allocations: 4 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.07e-05/0.4554, allocations: 11.98 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.568e-05/0.4554, allocations: 15.94 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.955e-05/0.4555, allocations: 35.73 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.4558, allocations: 62.69 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.796e-06/0.4558, allocations: 0 / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.4558, allocations: 3.938 kB / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.4559, allocations: 0 / 411.3 MB, free: 15.03 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.0009236/0.4568, allocations: 391 kB / 411.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.795e-05/0.4569, allocations: 12.03 kB / 411.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.197e-05/0.457, allocations: 34.75 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/0.4572, allocations: 20.88 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.4576, allocations: 206.6 kB / 411.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.4576, allocations: 384 / 411.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.755e-05/0.4577, allocations: 4.375 kB / 411.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004182/0.4581, allocations: 142 kB / 412 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.4581, allocations: 3.938 kB / 412 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.4581, allocations: 0 / 412 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.4582, allocations: 3.938 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.4583, allocations: 27.97 kB / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005427/0.4588, allocations: 282.5 kB / 412.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002999/0.4591, allocations: 160.8 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.4593, allocations: 46.67 kB / 412.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.4593, allocations: 4 kB / 412.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.4593, allocations: 30.56 kB / 412.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 2.134e-06/0.4594, allocations: 0 / 412.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003787/0.4597, allocations: 101.5 kB / 412.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.705e-05/0.4598, allocations: 102.8 kB / 412.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.46, allocations: 146.1 kB / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.4601, allocations: 25.7 kB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.1e-05/0.4601, allocations: 92.12 kB / 413 MB, free: 12.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.576e-05/0.4602, allocations: 15.88 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.323e-05/0.4603, allocations: 25.66 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.4604, allocations: 322.8 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.532e-05/0.4605, allocations: 11.98 kB / 413.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.287e-05/0.4606, allocations: 48.28 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.4607, allocations: 60.22 kB / 413.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4607, allocations: 4 kB / 413.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001782/0.4609, allocations: 85.55 kB / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.4609, allocations: 4 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.461, allocations: 0 / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.461, allocations: 4 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.458e-05/0.4611, allocations: 15.92 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.4611, allocations: 0 / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.743e-05/0.4611, allocations: 11.95 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.4612, allocations: 8.125 kB / 413.7 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.0001677/0.4613, allocations: 129.6 kB / 413.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.196e-05/0.4614, allocations: 57.64 kB / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.447e-05/0.4615, allocations: 12.25 kB / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.4615, allocations: 0 / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4615, allocations: 0 / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.4615, allocations: 4 kB / 413.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.4618, allocations: 181.6 kB / 414 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.4618, allocations: 3.938 kB / 414 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.472e-05/0.4618, allocations: 19.92 kB / 414.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.4619, allocations: 0 / 414.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.4619, allocations: 0 / 414.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.4619, allocations: 4 kB / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4619, allocations: 0 / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002068/0.4621, allocations: 185.4 kB / 414.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.97e-05/0.4622, allocations: 101 kB / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.4622, allocations: 0 / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.765e-05/0.4623, allocations: 11.98 kB / 414.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.716e-05/0.4623, allocations: 3.984 kB / 414.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.4624, allocations: 4 kB / 414.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.404e-05/0.4624, allocations: 109.5 kB / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4624, allocations: 0 / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002689/0.4627, allocations: 8 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.0007187/0.4634, allocations: 0.7566 MB / 415.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001917/0.4636, allocations: 44.17 kB / 415.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4637, allocations: 4.062 kB / 415.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.1e-05/0.4637, allocations: 15.98 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.0004358/0.4642, allocations: 24 kB / 415.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.466, allocations: 1.463 MB / 416.8 MB, free: 8.902 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.4663, allocations: 0.7002 MB / 417.5 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.149e-05/0.4664, allocations: 3.781 kB / 417.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.799e-05/0.4665, allocations: 23.42 kB / 417.5 MB, free: 8.148 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4665, allocations: 0 / 417.5 MB, free: 8.148 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02465/0.4912, allocations: 1.801 MB / 419.3 MB, free: 6.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.349, allocations: 3.859 kB / 419.3 MB, free: 6.492 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 & 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