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.001748/0.001748, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 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.001373/0.001373, allocations: 187.7 kB / 23.7 MB, free: 4.191 MB / 14.72 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 1.432/1.432, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00159/0.00159, allocations: 47.92 kB / 370.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2697, allocations: 52.18 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003306/0.273, allocations: 1.61 MB / 424.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009577/0.274, allocations: 462.8 kB / 424.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.892e-05/0.274, allocations: 11.88 kB / 424.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.845e-05/0.2741, allocations: 3.938 kB / 424.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.2742, allocations: 7.938 kB / 424.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.2745, allocations: 59.42 kB / 424.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.2746, allocations: 51.8 kB / 424.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.724e-05/0.2747, allocations: 8.172 kB / 424.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.901e-05/0.2748, allocations: 31.91 kB / 424.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.735e-05/0.2749, allocations: 19.8 kB / 424.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.2749, allocations: 4 kB / 424.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.493e-05/0.2749, allocations: 4 kB / 424.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.563e-05/0.275, allocations: 19.94 kB / 424.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.656e-05/0.275, allocations: 23.86 kB / 424.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001357/0.2751, allocations: 59.11 kB / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2751, allocations: 0 / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2752, allocations: 0 / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.2752, allocations: 0 / 424.9 MB, free: 12.06 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.0005272/0.2757, allocations: 310.9 kB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.2757, allocations: 8.031 kB / 425.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.416e-05/0.2758, allocations: 38.75 kB / 425.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.2758, allocations: 8.891 kB / 425.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.2761, allocations: 154.2 kB / 425.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-06/0.2761, allocations: 384 / 425.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.172e-05/0.2761, allocations: 4.375 kB / 425.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000308/0.2764, allocations: 133.8 kB / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.2764, allocations: 0 / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.328e-06/0.2764, allocations: 0 / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.2764, allocations: 8 kB / 425.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.703e-05/0.2765, allocations: 23.92 kB / 425.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003819/0.2769, allocations: 249.7 kB / 425.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.2771, allocations: 79.72 kB / 425.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.904e-05/0.2772, allocations: 34.69 kB / 426 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.2772, allocations: 0 / 426 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.2772, allocations: 42.5 kB / 426 MB, free: 10.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.2772, allocations: 0 / 426 MB, free: 10.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003057/0.2775, allocations: 93.55 kB / 426.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.136e-05/0.2776, allocations: 110.8 kB / 426.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.2778, allocations: 140.7 kB / 426.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.2778, allocations: 29.7 kB / 426.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.211e-05/0.2778, allocations: 92.08 kB / 426.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.004e-05/0.2779, allocations: 7.953 kB / 426.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.246e-05/0.2779, allocations: 25.66 kB / 426.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.2781, allocations: 326.7 kB / 426.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.097e-05/0.2781, allocations: 16.23 kB / 426.8 MB, free: 9.922 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.806e-05/0.2782, allocations: 48.28 kB / 426.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001211/0.2783, allocations: 68.33 kB / 426.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2783, allocations: 0 / 426.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001667/0.2785, allocations: 85.67 kB / 427 MB, free: 9.688 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.2785, allocations: 8 kB / 427 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2785, allocations: 4 kB / 427 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.2785, allocations: 0 / 427 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.416e-05/0.2786, allocations: 15.98 kB / 427.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.2786, allocations: 0 / 427.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.019e-05/0.2786, allocations: 7.953 kB / 427.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.2787, allocations: 4 kB / 427.1 MB, free: 9.648 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.0001207/0.2788, allocations: 129.7 kB / 427.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.215e-05/0.2789, allocations: 49.64 kB / 427.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.222e-05/0.2789, allocations: 16.34 kB / 427.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2789, allocations: 4 kB / 427.3 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.2789, allocations: 4 kB / 427.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2789, allocations: 0 / 427.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.2791, allocations: 152.6 kB / 427.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2791, allocations: 0 / 427.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.633e-05/0.2792, allocations: 11.98 kB / 427.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2792, allocations: 0 / 427.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.2792, allocations: 4 kB / 427.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2792, allocations: 0 / 427.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2792, allocations: 3.938 kB / 427.4 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002318/0.2794, allocations: 189.1 kB / 427.6 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.926e-05/0.2795, allocations: 19.94 kB / 427.6 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.2795, allocations: 0 / 427.6 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.414e-05/0.2796, allocations: 8 kB / 427.6 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.904e-05/0.2796, allocations: 3.984 kB / 427.7 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-06/0.2796, allocations: 4 kB / 427.7 MB, free: 8.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.356e-05/0.2797, allocations: 103.3 kB / 427.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2797, allocations: 0 / 427.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002329/0.2799, allocations: 11.94 kB / 427.8 MB, free: 8.859 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.0006384/0.2806, allocations: 0.7493 MB / 428.5 MB, free: 8.078 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000157/0.2807, allocations: 55.84 kB / 428.6 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2807, allocations: 0 / 428.6 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.291e-05/0.2808, allocations: 11.92 kB / 428.6 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.2811, allocations: 35.72 kB / 428.6 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.2827, allocations: 1.448 MB / 430.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.773e-05/0.2828, allocations: 83.19 kB / 430.1 MB, free: 6.316 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.635e-05/0.2829, allocations: 3.984 kB / 430.2 MB, free: 6.312 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.1e-05/0.2829, allocations: 19.44 kB / 430.2 MB, free: 6.293 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2829, allocations: 0 / 430.2 MB, free: 6.293 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03888/0.3218, allocations: 2.306 MB / 432.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.33, allocations: 10.38 kB / 432.5 MB, free: 4.117 MB / 334.1 MB " [Timeout remaining time 649] (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/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) [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: 13.954168381169438]