Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 213.4 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.488/1.488, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 39.94 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2699, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002889/0.2728, allocations: 1.633 MB / 432.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009974/0.2738, allocations: 0.5648 MB / 433.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.438e-05/0.2739, allocations: 0 / 433.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.609e-05/0.2739, allocations: 3.938 kB / 433.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.2741, allocations: 15.88 kB / 433.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003223/0.2744, allocations: 71.72 kB / 433.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.2745, allocations: 47.84 kB / 433.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.822e-05/0.2746, allocations: 12 kB / 433.5 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.2747, allocations: 39.78 kB / 433.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.692e-05/0.2747, allocations: 19.92 kB / 433.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.629e-05/0.2748, allocations: 7.938 kB / 433.6 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.724e-05/0.2748, allocations: 7.984 kB / 433.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.125e-05/0.2748, allocations: 12 kB / 433.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.719e-05/0.2749, allocations: 31.73 kB / 433.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.275, allocations: 64.09 kB / 433.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.275, allocations: 4 kB / 433.7 MB, free: 4.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.275, allocations: 0 / 433.7 MB, free: 4.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.275, allocations: 4 kB / 433.7 MB, free: 4.324 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.0004389/0.2755, allocations: 313.9 kB / 434 MB, free: 3.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.2755, allocations: 8.031 kB / 434 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.388e-05/0.2756, allocations: 38.75 kB / 434 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.2757, allocations: 16.88 kB / 434 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.2759, allocations: 149.4 kB / 434.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.2759, allocations: 384 / 434.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.2759, allocations: 8.375 kB / 434.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.2763, allocations: 137.9 kB / 434.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.2763, allocations: 0 / 434.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.2763, allocations: 0 / 434.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.2763, allocations: 4 kB / 434.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.799e-05/0.2764, allocations: 27.92 kB / 434.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003488/0.2767, allocations: 249.7 kB / 434.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.2769, allocations: 83.72 kB / 434.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.411e-05/0.277, allocations: 42.62 kB / 434.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.277, allocations: 3.984 kB / 434.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.277, allocations: 34.56 kB / 434.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.277, allocations: 7.938 kB / 434.8 MB, free: 3.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002738/0.2773, allocations: 93.55 kB / 434.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.2774, allocations: 110.8 kB / 435 MB, free: 2.816 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.2775, allocations: 141.8 kB / 435.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.2775, allocations: 25.7 kB / 435.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.191e-05/0.2776, allocations: 88.14 kB / 435.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.2776, allocations: 16.14 kB / 435.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.2776, allocations: 25.7 kB / 435.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.2778, allocations: 318.8 kB / 435.6 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.843e-05/0.2778, allocations: 11.98 kB / 435.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.445e-05/0.2779, allocations: 44.28 kB / 435.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.278, allocations: 68.22 kB / 435.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.278, allocations: 0 / 435.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001673/0.2782, allocations: 85.5 kB / 435.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.2782, allocations: 8.125 kB / 435.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2782, allocations: 4 kB / 435.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.2782, allocations: 4.219 kB / 435.8 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.669e-05/0.2783, allocations: 8 kB / 435.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.2783, allocations: 4 kB / 435.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.965e-05/0.2783, allocations: 11.95 kB / 435.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.2784, allocations: 8.141 kB / 435.8 MB, free: 1.891 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 9.869e-05/0.2784, allocations: 129.7 kB / 436 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.495e-05/0.2785, allocations: 49.64 kB / 436 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.391e-05/0.2786, allocations: 16.34 kB / 436 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2786, allocations: 4 kB / 436 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2786, allocations: 0 / 436 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.2786, allocations: 3.938 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001851/0.2788, allocations: 152.7 kB / 436.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2788, allocations: 0 / 436.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.641e-05/0.2788, allocations: 11.98 kB / 436.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2788, allocations: 4 kB / 436.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.373e-06/0.2788, allocations: 3.938 kB / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2788, allocations: 0 / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.2788, allocations: 3.984 kB / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002071/0.279, allocations: 193.1 kB / 436.4 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.951e-05/0.2791, allocations: 15.94 kB / 436.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.2791, allocations: 4 kB / 436.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.243e-05/0.2792, allocations: 4 kB / 436.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.445e-05/0.2792, allocations: 11.92 kB / 436.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.2792, allocations: 0 / 436.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.136e-05/0.2793, allocations: 113.7 kB / 436.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2793, allocations: 3.938 kB / 436.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002343/0.2795, allocations: 12 kB / 436.6 MB, free: 1.082 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.0006021/0.2801, allocations: 0.7453 MB / 437.3 MB, free: 312 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001572/0.2803, allocations: 39.92 kB / 437.3 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2803, allocations: 0 / 437.3 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.568e-05/0.2803, allocations: 19.92 kB / 437.4 MB, free: 252 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.2807, allocations: 28.44 kB / 437.4 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.2821, allocations: 1.462 MB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.2825, allocations: 0.6963 MB / 439.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.907e-05/0.2825, allocations: 12.19 kB / 439.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.326e-05/0.2825, allocations: 23.42 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2825, allocations: 0 / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02774/0.3103, allocations: 1.92 MB / 441.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.15, allocations: 7.938 kB / 441.5 MB, free: 12.09 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv. Warning: Get data of variable clockToSquareWave.y from file Modelica_4.1.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.755928094997216]