Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.001658/0.001658, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00207/0.00207, allocations: 210.3 kB / 23.73 MB, free: 4.379 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.466/1.466, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 47.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2819, allocations: 53.35 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003188/0.2851, allocations: 1.845 MB / 432.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.2865, allocations: 0.705 MB / 433.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.2866, allocations: 11.88 kB / 433.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.2867, allocations: 19.78 kB / 433.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001521/0.2869, allocations: 27.78 kB / 433.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005516/0.2874, allocations: 159.6 kB / 433.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002128/0.2876, allocations: 155.5 kB / 434 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.2878, allocations: 45.72 kB / 434 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.2879, allocations: 67.7 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.288, allocations: 55.7 kB / 434.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.499e-05/0.2881, allocations: 12 kB / 434.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.2882, allocations: 55.97 kB / 434.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.74e-05/0.2882, allocations: 43.84 kB / 434.3 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.832e-05/0.2883, allocations: 55.64 kB / 434.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.2886, allocations: 208.8 kB / 434.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2886, allocations: 0 / 434.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2886, allocations: 4 kB / 434.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.2886, allocations: 0 / 434.5 MB, free: 3.188 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.00072/0.2893, allocations: 405.6 kB / 434.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.2894, allocations: 8.031 kB / 434.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.146e-05/0.2894, allocations: 42.75 kB / 435 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/0.2896, allocations: 32.78 kB / 435 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.29, allocations: 199.5 kB / 435.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.29, allocations: 8.562 kB / 435.2 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.443e-05/0.29, allocations: 11.94 kB / 435.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007125/0.2907, allocations: 359.2 kB / 435.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.2907, allocations: 0 / 435.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.2907, allocations: 4 kB / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.2908, allocations: 0 / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002445/0.291, allocations: 87.88 kB / 435.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004576/0.2915, allocations: 296.7 kB / 436 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004855/0.2919, allocations: 185 kB / 436.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001955/0.2921, allocations: 93.73 kB / 436.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004242/0.2926, allocations: 52.22 kB / 436.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.2926, allocations: 46.5 kB / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.583e-06/0.2926, allocations: 0 / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006394/0.2932, allocations: 241.2 kB / 436.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.2934, allocations: 117.5 kB / 436.7 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002252/0.2936, allocations: 198.5 kB / 436.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.2936, allocations: 29.7 kB / 436.9 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.378e-05/0.2937, allocations: 104.6 kB / 437 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.2937, allocations: 27.95 kB / 437 MB, free: 488 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.556e-05/0.2938, allocations: 37.7 kB / 437.1 MB, free: 444 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.294, allocations: 326.8 kB / 437.4 MB, free: 108 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.762e-05/0.294, allocations: 39.97 kB / 437.4 MB, free: 68 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002397/0.2943, allocations: 186.8 kB / 437.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.2946, allocations: 212.1 kB / 437.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2946, allocations: 0 / 437.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003581/0.2949, allocations: 217.6 kB / 438 MB, free: 15.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.295, allocations: 8 kB / 438 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.295, allocations: 4 kB / 438 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.295, allocations: 8 kB / 438 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.2951, allocations: 43.92 kB / 438.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.2952, allocations: 11.92 kB / 438.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.2953, allocations: 15.95 kB / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.2953, allocations: 12 kB / 438.1 MB, free: 15.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001539/0.2954, allocations: 149.8 kB / 438.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003119/0.2957, allocations: 165.4 kB / 438.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003645/0.2961, allocations: 182 kB / 438.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2961, allocations: 4 kB / 438.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2961, allocations: 3.938 kB / 438.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.2961, allocations: 3.984 kB / 438.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002137/0.2963, allocations: 180.5 kB / 438.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.2964, allocations: 4 kB / 438.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.2965, allocations: 35.98 kB / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.2965, allocations: 0 / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.2965, allocations: 0 / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.715e-06/0.2965, allocations: 7.984 kB / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2965, allocations: 0 / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004559/0.297, allocations: 288.1 kB / 439.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.376e-05/0.2971, allocations: 39.77 kB / 439.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.214e-05/0.2971, allocations: 11.98 kB / 439.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.2972, allocations: 15.98 kB / 439.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.624e-05/0.2973, allocations: 4 kB / 439.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.2973, allocations: 4 kB / 439.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000154/0.2974, allocations: 148 kB / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2974, allocations: 4 kB / 439.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.2978, allocations: 28 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.00108/0.2989, allocations: 0.924 MB / 440.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003447/0.2992, allocations: 135.8 kB / 440.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2992, allocations: 0 / 440.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.843e-05/0.2992, allocations: 9.172 kB / 440.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006229/0.2999, allocations: 151.2 kB / 440.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002519/0.3024, allocations: 2.179 MB / 442.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.3025, allocations: 119.5 kB / 442.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.222e-05/0.3026, allocations: 17.48 kB / 442.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.143e-05/0.3026, allocations: 47.42 kB / 443 MB, free: 10.08 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3026, allocations: 4 kB / 443 MB, free: 10.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03268/0.3353, allocations: 5.047 MB / 448 MB, free: 5.191 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.41, allocations: 15.86 kB / 448 MB, free: 5.176 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.limiter.u,sample1.limiter.y,sample1.noise.u [Calling sys.exit(0), Time elapsed: 13.961280955001712]