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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 116.5 kB / 20.43 MB, free: 1.305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 206.6 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 230.5 MB / 257.4 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 67.88 kB / 377.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2779, allocations: 53.4 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003356/0.2812, allocations: 1.615 MB / 432.8 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.2824, allocations: 0.5726 MB / 433.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.112e-05/0.2825, allocations: 4 kB / 433.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.065e-05/0.2826, allocations: 11.81 kB / 433.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.2827, allocations: 7.922 kB / 433.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004244/0.2831, allocations: 63.8 kB / 433.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001256/0.2833, allocations: 51.8 kB / 433.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.2834, allocations: 11.98 kB / 433.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.2835, allocations: 39.78 kB / 433.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.281e-05/0.2836, allocations: 23.86 kB / 433.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.634e-05/0.2836, allocations: 4 kB / 433.6 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.337e-05/0.2837, allocations: 8 kB / 433.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.389e-05/0.2837, allocations: 15.98 kB / 433.6 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.523e-05/0.2838, allocations: 27.75 kB / 433.7 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002295/0.284, allocations: 68.08 kB / 433.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.284, allocations: 0 / 433.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.284, allocations: 0 / 433.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.284, allocations: 0 / 433.7 MB, free: 4.145 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.000532/0.2845, allocations: 313.9 kB / 434 MB, free: 3.809 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.2846, allocations: 12.03 kB / 434 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.203e-05/0.2846, allocations: 42.67 kB / 434.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002054/0.2848, allocations: 20.88 kB / 434.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002553/0.2851, allocations: 137.1 kB / 434.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.2851, allocations: 384 / 434.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.2851, allocations: 8.375 kB / 434.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.2854, allocations: 137.9 kB / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2854, allocations: 0 / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.2855, allocations: 4 kB / 434.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.2855, allocations: 11.92 kB / 434.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.355e-05/0.2855, allocations: 19.98 kB / 434.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004931/0.286, allocations: 257.6 kB / 434.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.2862, allocations: 79.72 kB / 434.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.086e-05/0.2863, allocations: 38.69 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.2863, allocations: 4 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.2864, allocations: 38.53 kB / 434.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.2864, allocations: 0 / 434.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003497/0.2867, allocations: 93.56 kB / 434.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.2868, allocations: 114.8 kB / 435 MB, free: 2.633 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.287, allocations: 141.8 kB / 435.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.287, allocations: 25.7 kB / 435.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/0.2871, allocations: 84.14 kB / 435.3 MB, free: 2.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.591e-05/0.2871, allocations: 19.88 kB / 435.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.092e-05/0.2871, allocations: 17.72 kB / 435.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.2873, allocations: 331 kB / 435.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.804e-05/0.2873, allocations: 8 kB / 435.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.845e-05/0.2874, allocations: 44.28 kB / 435.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000193/0.2876, allocations: 68.2 kB / 435.7 MB, free: 1.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2876, allocations: 3.938 kB / 435.7 MB, free: 1.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000164/0.2878, allocations: 85.5 kB / 435.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2878, allocations: 8 kB / 435.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2878, allocations: 160 / 435.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.2878, allocations: 128 / 435.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.733e-05/0.2879, allocations: 16 kB / 435.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/0.2879, allocations: 19.91 kB / 435.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.961e-05/0.2879, allocations: 7.953 kB / 435.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.2879, allocations: 0 / 435.9 MB, free: 1.699 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.0001049/0.288, allocations: 121.8 kB / 436 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.387e-05/0.2881, allocations: 53.64 kB / 436.1 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4e-05/0.2882, allocations: 16.33 kB / 436.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.2882, allocations: 4.219 kB / 436.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.2882, allocations: 4 kB / 436.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2882, allocations: 0 / 436.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002555/0.2884, allocations: 152.7 kB / 436.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2884, allocations: 4 kB / 436.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.062e-05/0.2885, allocations: 15.92 kB / 436.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2885, allocations: 0 / 436.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.2885, allocations: 0 / 436.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2885, allocations: 4 kB / 436.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2885, allocations: 0 / 436.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.2887, allocations: 189.1 kB / 436.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.519e-05/0.2888, allocations: 19.94 kB / 436.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.2888, allocations: 0 / 436.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.321e-05/0.2889, allocations: 7.984 kB / 436.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.422e-05/0.2889, allocations: 3.938 kB / 436.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.2889, allocations: 4 kB / 436.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.38e-05/0.289, allocations: 114 kB / 436.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.289, allocations: 0 / 436.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.2892, allocations: 12 kB / 436.6 MB, free: 0.9023 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.0006494/0.2899, allocations: 0.7492 MB / 437.3 MB, free: 124 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001688/0.29, allocations: 43.91 kB / 437.4 MB, free: 80 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.29, allocations: 0 / 437.4 MB, free: 80 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.118e-05/0.2901, allocations: 12 kB / 437.4 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.2905, allocations: 35.62 kB / 437.4 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.2922, allocations: 1.463 MB / 438.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.2925, allocations: 0.6924 MB / 439.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.822e-05/0.2926, allocations: 19.7 kB / 439.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.665e-05/0.2926, allocations: 19.44 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2926, allocations: 0 / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02998/0.3226, allocations: 1.916 MB / 441.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.62, allocations: 15.73 kB / 441.6 MB, free: 11.88 MB / 350.1 MB " [Timeout remaining time 648] (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 1.79641e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "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! " [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: 14.180582772001799]