Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 105 kB / 16.92 MB, free: 5.855 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 47.08 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1345, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003546/0.1381, allocations: 1.579 MB / 351.7 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.1392, allocations: 0.4909 MB / 352.2 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1393, allocations: 0 / 352.2 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.629e-05/0.1394, allocations: 7.922 kB / 352.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.1396, allocations: 15.86 kB / 352.3 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.1399, allocations: 47.83 kB / 352.3 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000131/0.1401, allocations: 43.86 kB / 352.4 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.1402, allocations: 20.17 kB / 352.4 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.859e-05/0.1403, allocations: 27.84 kB / 352.4 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.84e-05/0.1404, allocations: 27.86 kB / 352.4 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.1404, allocations: 0 / 352.4 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.733e-05/0.1404, allocations: 4 kB / 352.4 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.195e-05/0.1405, allocations: 19.92 kB / 352.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.856e-05/0.1406, allocations: 27.81 kB / 352.5 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.1407, allocations: 59.72 kB / 352.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.1407, allocations: 8 kB / 352.5 MB, free: 1.926 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1407, allocations: 0 / 352.5 MB, free: 1.926 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.1408, allocations: 0 / 352.5 MB, free: 1.926 MB / 286.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.0006077/0.1414, allocations: 379.3 kB / 352.9 MB, free: 1.508 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.1414, allocations: 8.031 kB / 352.9 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.021e-05/0.1415, allocations: 42.73 kB / 353 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.601e-05/0.1415, allocations: 8.844 kB / 353 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.1418, allocations: 200 kB / 353.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.1418, allocations: 8.375 kB / 353.2 MB, free: 1.199 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.1418, allocations: 384 / 353.2 MB, free: 1.199 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003372/0.1422, allocations: 137.8 kB / 353.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.1422, allocations: 0 / 353.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.1422, allocations: 0 / 353.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.1422, allocations: 11.94 kB / 353.3 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.796e-05/0.1423, allocations: 23.92 kB / 353.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003849/0.1427, allocations: 282.6 kB / 353.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.143, allocations: 160.9 kB / 353.8 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.155e-05/0.143, allocations: 46.61 kB / 353.8 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.1431, allocations: 3.938 kB / 353.8 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.1431, allocations: 42.55 kB / 353.9 MB, free: 372 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.1431, allocations: 0 / 353.9 MB, free: 372 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003062/0.1434, allocations: 89.52 kB / 354 MB, free: 276 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.614e-05/0.1435, allocations: 110.8 kB / 354.1 MB, free: 140 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.1437, allocations: 145.1 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.1437, allocations: 25.7 kB / 354.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.83e-05/0.1438, allocations: 88.39 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.1438, allocations: 11.84 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.262e-05/0.1439, allocations: 25.62 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.144, allocations: 322.8 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.257e-05/0.144, allocations: 12 kB / 354.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.501e-05/0.1441, allocations: 48.27 kB / 354.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.1442, allocations: 60.22 kB / 354.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1443, allocations: 0 / 354.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001689/0.1444, allocations: 93.66 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1445, allocations: 8 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1445, allocations: 0 / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.1445, allocations: 4 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.667e-05/0.1446, allocations: 8 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.1446, allocations: 3.984 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.689e-05/0.1446, allocations: 4 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.1447, allocations: 4 kB / 354.9 MB, free: 15.22 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 0.0001118/0.1448, allocations: 125.7 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.584e-05/0.1449, allocations: 53.59 kB / 355.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.973e-05/0.1449, allocations: 24.17 kB / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1449, allocations: 0 / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.145, allocations: 0 / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.145, allocations: 0 / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002216/0.1452, allocations: 181.4 kB / 355.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1452, allocations: 4 kB / 355.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.477e-05/0.1453, allocations: 11.98 kB / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1453, allocations: 0 / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.1453, allocations: 7.938 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.1453, allocations: 0 / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1453, allocations: 11.94 kB / 355.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002069/0.1455, allocations: 181.1 kB / 355.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.559e-05/0.1456, allocations: 97.27 kB / 355.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.1456, allocations: 4.062 kB / 355.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.86e-05/0.1457, allocations: 4 kB / 355.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.526e-05/0.1458, allocations: 11.98 kB / 355.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.1458, allocations: 4 kB / 355.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.884e-05/0.1459, allocations: 114.2 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1459, allocations: 0 / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002377/0.1461, allocations: 11.94 kB / 355.7 MB, free: 14.28 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.0007855/0.1469, allocations: 0.7458 MB / 356.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002132/0.1471, allocations: 43.91 kB / 356.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/0.1471, allocations: 4 kB / 356.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.673e-05/0.1472, allocations: 8.312 kB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005714/0.1478, allocations: 37.42 kB / 356.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.1496, allocations: 1.432 MB / 358 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.1501, allocations: 0.7002 MB / 358.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.518e-05/0.1501, allocations: 4 kB / 358.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.069e-05/0.1502, allocations: 19.44 kB / 358.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1502, allocations: 0 / 358.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02132/0.1715, allocations: 1.763 MB / 360.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.142/8.314, allocations: 7.578 kB / 360.5 MB, free: 9.477 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv. Warning: Get data of variable clockToSquareWave.y from file Modelica_4.0.0_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