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.001523/0.001523, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00158/0.00158, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.57/1.57, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3193, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003171/0.3226, allocations: 1.604 MB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001159/0.3238, allocations: 0.5532 MB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.778e-05/0.3239, allocations: 0 / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.975e-05/0.3239, allocations: 3.938 kB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.3241, allocations: 15.88 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003613/0.3245, allocations: 63.8 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001232/0.3246, allocations: 55.78 kB / 411.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.3248, allocations: 15.98 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.3249, allocations: 23.92 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.888e-05/0.325, allocations: 31.78 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.797e-05/0.325, allocations: 4 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.716e-05/0.3251, allocations: 8 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.521e-05/0.3251, allocations: 15.94 kB / 411.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.413e-05/0.3252, allocations: 31.73 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.3254, allocations: 70.67 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.3254, allocations: 0 / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3254, allocations: 0 / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.3254, allocations: 0 / 411.3 MB, free: 15.04 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.0006101/0.326, allocations: 387 kB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3261, allocations: 11.97 kB / 411.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.845e-05/0.3261, allocations: 38.73 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.3263, allocations: 16.89 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.3266, allocations: 210.5 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.3266, allocations: 4.375 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.3267, allocations: 4.375 kB / 411.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003429/0.327, allocations: 134 kB / 412 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.327, allocations: 0 / 412 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.327, allocations: 0 / 412 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3271, allocations: 3.938 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.781e-05/0.3272, allocations: 31.91 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004037/0.3276, allocations: 278.6 kB / 412.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002687/0.3278, allocations: 160.8 kB / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.97e-05/0.3279, allocations: 38.67 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.328, allocations: 8 kB / 412.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.328, allocations: 38.5 kB / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.328, allocations: 0 / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003192/0.3284, allocations: 93.55 kB / 412.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.555e-05/0.3285, allocations: 107.1 kB / 412.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.3286, allocations: 145.8 kB / 412.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.3286, allocations: 29.7 kB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.124e-05/0.3287, allocations: 84.14 kB / 413 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.3287, allocations: 19.81 kB / 413.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.842e-05/0.3288, allocations: 25.66 kB / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3289, allocations: 322.8 kB / 413.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.554e-05/0.329, allocations: 15.98 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.784e-05/0.3291, allocations: 44.28 kB / 413.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001178/0.3292, allocations: 60.22 kB / 413.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3292, allocations: 4 kB / 413.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001829/0.3294, allocations: 85.55 kB / 413.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.3294, allocations: 8 kB / 413.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3294, allocations: 0 / 413.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.3295, allocations: 4 kB / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.787e-05/0.3296, allocations: 11.98 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.3296, allocations: 0 / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.993e-05/0.3296, allocations: 8.078 kB / 413.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.3296, allocations: 8 kB / 413.6 MB, free: 12.3 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.0001078/0.3298, allocations: 133.7 kB / 413.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.812e-05/0.3299, allocations: 57.58 kB / 413.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.533e-05/0.3299, allocations: 12.25 kB / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3299, allocations: 0 / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3299, allocations: 0 / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3299, allocations: 0 / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.3302, allocations: 177.6 kB / 414 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3302, allocations: 4 kB / 414 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.846e-05/0.3302, allocations: 19.92 kB / 414 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3303, allocations: 0 / 414 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.3303, allocations: 4 kB / 414 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.3303, allocations: 4 kB / 414.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3303, allocations: 3.938 kB / 414.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002214/0.3305, allocations: 185.4 kB / 414.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.807e-05/0.3306, allocations: 97.05 kB / 414.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.3306, allocations: 0 / 414.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.255e-05/0.3307, allocations: 4 kB / 414.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.822e-05/0.3307, allocations: 7.969 kB / 414.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.3308, allocations: 8 kB / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.254e-05/0.3308, allocations: 109.5 kB / 414.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3308, allocations: 0 / 414.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002334/0.3311, allocations: 8 kB / 414.5 MB, free: 11.37 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.0006392/0.3317, allocations: 0.7531 MB / 415.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001765/0.3319, allocations: 52.09 kB / 415.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3319, allocations: 0 / 415.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.274e-05/0.332, allocations: 11.94 kB / 415.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.3323, allocations: 31.23 kB / 415.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.334, allocations: 1.459 MB / 416.8 MB, free: 8.922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.3343, allocations: 0.7006 MB / 417.5 MB, free: 8.195 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.149e-05/0.3344, allocations: 3.906 kB / 417.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.553e-05/0.3344, allocations: 19.42 kB / 417.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3345, allocations: 0 / 417.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02521/0.3597, allocations: 1.805 MB / 419.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.057/8.417, allocations: 10.33 kB / 419.3 MB, free: 6.504 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.1.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