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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009792/0.0009792, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8881/0.8881, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 318.4 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.301e-05/2.45e-05, allocations: 6.219 kB / 318.4 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002131/0.002155, allocations: 1.593 MB / 320 MB, free: 4.715 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000732/0.002887, allocations: 466.6 kB / 320.5 MB, free: 4.254 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.588e-05/0.002973, allocations: 4 kB / 320.5 MB, free: 4.25 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.511e-05/0.003018, allocations: 7.875 kB / 320.5 MB, free: 4.242 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.003166, allocations: 15.86 kB / 320.5 MB, free: 4.227 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.00342, allocations: 55.75 kB / 320.6 MB, free: 4.172 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001007/0.003521, allocations: 51.8 kB / 320.6 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.003622, allocations: 20.14 kB / 320.6 MB, free: 4.102 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.827e-05/0.00369, allocations: 27.92 kB / 320.7 MB, free: 4.074 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.926e-05/0.00374, allocations: 15.95 kB / 320.7 MB, free: 4.059 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.28e-05/0.003763, allocations: 4 kB / 320.7 MB, free: 4.055 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.06e-05/0.003773, allocations: 4 kB / 320.7 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.672e-05/0.00383, allocations: 11.94 kB / 320.7 MB, free: 4.039 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.448e-05/0.003864, allocations: 19.92 kB / 320.7 MB, free: 4.02 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.003989, allocations: 63.72 kB / 320.8 MB, free: 3.957 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.003997, allocations: 0 / 320.8 MB, free: 3.957 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.003998, allocations: 4 kB / 320.8 MB, free: 3.953 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.004003, allocations: 0 / 320.8 MB, free: 3.953 MB / 282.7 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.0004469/0.00445, allocations: 306 kB / 321.1 MB, free: 3.625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.004495, allocations: 8.922 kB / 321.1 MB, free: 3.617 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.414e-05/0.004529, allocations: 42.75 kB / 321.1 MB, free: 3.566 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.931e-05/0.004558, allocations: 12.84 kB / 321.2 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/0.004764, allocations: 141.5 kB / 321.3 MB, free: 3.391 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.004775, allocations: 4.375 kB / 321.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.004785, allocations: 4.375 kB / 321.3 MB, free: 3.383 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002714/0.005056, allocations: 134.4 kB / 321.4 MB, free: 3.23 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.005064, allocations: 192 / 321.4 MB, free: 3.23 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.005075, allocations: 7.938 kB / 321.4 MB, free: 3.223 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.005081, allocations: 0 / 321.4 MB, free: 3.223 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.178e-05/0.005132, allocations: 19.98 kB / 321.5 MB, free: 3.203 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002943/0.005427, allocations: 245.7 kB / 321.7 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001483/0.005575, allocations: 87.66 kB / 321.8 MB, free: 2.801 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.704e-05/0.005622, allocations: 38.69 kB / 321.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.005642, allocations: 4 kB / 321.8 MB, free: 2.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.005658, allocations: 30.56 kB / 321.9 MB, free: 2.711 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 8.91e-07/0.005658, allocations: 0 / 321.9 MB, free: 2.711 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001933/0.005852, allocations: 101.5 kB / 322 MB, free: 2.605 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.005913, allocations: 107.1 kB / 322.1 MB, free: 2.477 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.399e-05/0.006007, allocations: 146.1 kB / 322.2 MB, free: 2.32 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.669e-06/0.006016, allocations: 25.7 kB / 322.2 MB, free: 2.289 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.433e-05/0.006051, allocations: 88.09 kB / 322.3 MB, free: 2.199 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.006068, allocations: 15.94 kB / 322.3 MB, free: 2.184 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/0.006095, allocations: 17.7 kB / 322.4 MB, free: 2.16 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.923e-05/0.006184, allocations: 314.8 kB / 322.7 MB, free: 1.844 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.063e-05/0.006215, allocations: 19.92 kB / 322.7 MB, free: 1.824 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.499e-05/0.00624, allocations: 21.84 kB / 322.7 MB, free: 1.797 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.164e-05/0.006312, allocations: 49.72 kB / 322.7 MB, free: 1.742 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.006317, allocations: 7.922 kB / 322.8 MB, free: 1.734 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.24e-05/0.006399, allocations: 65.58 kB / 322.8 MB, free: 1.664 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.006412, allocations: 8 kB / 322.8 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.006417, allocations: 0 / 322.8 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.006429, allocations: 0 / 322.8 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.06e-05/0.00648, allocations: 7.984 kB / 322.8 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.006485, allocations: 0 / 322.8 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.085e-05/0.006506, allocations: 4 kB / 322.8 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.006514, allocations: 32 / 322.8 MB, free: 1.645 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 7.189e-05/0.006585, allocations: 129.8 kB / 323 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.006634, allocations: 49.64 kB / 323 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.179e-05/0.006666, allocations: 12.34 kB / 323 MB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.006669, allocations: 4 kB / 323 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.006673, allocations: 3.938 kB / 323 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.006676, allocations: 0 / 323 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.006826, allocations: 144.7 kB / 323.2 MB, free: 1.242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.006827, allocations: 0 / 323.2 MB, free: 1.242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.765e-05/0.006864, allocations: 8 kB / 323.2 MB, free: 1.234 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.006869, allocations: 7.984 kB / 323.2 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.006876, allocations: 8 kB / 323.2 MB, free: 1.219 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.006878, allocations: 4 kB / 323.2 MB, free: 1.215 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.006879, allocations: 0 / 323.2 MB, free: 1.215 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.007003, allocations: 189.1 kB / 323.4 MB, free: 1.008 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.317e-05/0.007036, allocations: 19.88 kB / 323.4 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.007051, allocations: 4 kB / 323.4 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.646e-05/0.007087, allocations: 4 kB / 323.4 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.898e-05/0.007116, allocations: 0 / 323.4 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.007123, allocations: 7.984 kB / 323.4 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.912e-05/0.007173, allocations: 106.5 kB / 323.5 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007173, allocations: 4 kB / 323.5 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001503/0.007323, allocations: 12 kB / 323.5 MB, free: 0.8555 MB / 282.7 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.0004309/0.007754, allocations: 0.7375 MB / 324.3 MB, free: 88 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001079/0.007862, allocations: 31.97 kB / 324.3 MB, free: 56 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.007863, allocations: 0 / 324.3 MB, free: 56 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.263e-05/0.007886, allocations: 24.05 kB / 324.3 MB, free: 32 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.008159, allocations: 28.36 kB / 324.4 MB, free: 4 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008696/0.009029, allocations: 1.379 MB / 325.7 MB, free: 14.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001822/0.009211, allocations: 79.33 kB / 325.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.627e-05/0.009238, allocations: 3.984 kB / 325.8 MB, free: 14.42 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.351e-05/0.009281, allocations: 24.5 kB / 325.8 MB, free: 14.4 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.009282, allocations: 0 / 325.8 MB, free: 14.4 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01662/0.0259, allocations: 2.426 MB / 328.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.826/6.852, allocations: 11.05 kB / 328.3 MB, free: 12.12 MB / 298.7 MB " [Timeout remaining time 653] (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 1.79641e-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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "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! " [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,clockToSquareWave.y Variables in the result:time,clockToSquareWave.u,sample1.y,sine.y,sine.amplitude,sine.f [Calling sys.exit(0), Time elapsed: 8.672987380996346]