Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.001739/0.001739, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001601/0.001601, allocations: 206.4 kB / 23.72 MB, free: 4.391 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.441/1.441, allocations: 230.5 MB / 257.4 MB, free: 7.73 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.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 63.91 kB / 377.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2788, allocations: 53.4 MB / 431.1 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003335/0.2821, allocations: 1.836 MB / 433 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.2835, allocations: 0.7011 MB / 433.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.2836, allocations: 7.938 kB / 433.7 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.2838, allocations: 27.72 kB / 433.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001562/0.2839, allocations: 27.78 kB / 433.7 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005694/0.2845, allocations: 162.8 kB / 433.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002151/0.2847, allocations: 151.6 kB / 434.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.2848, allocations: 41.7 kB / 434.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.285, allocations: 67.66 kB / 434.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.2851, allocations: 55.69 kB / 434.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.989e-05/0.2852, allocations: 12 kB / 434.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.2853, allocations: 55.97 kB / 434.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.791e-05/0.2853, allocations: 39.84 kB / 434.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.019e-05/0.2854, allocations: 59.59 kB / 434.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003/0.2857, allocations: 212.8 kB / 434.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.2857, allocations: 0 / 434.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2857, allocations: 0 / 434.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.2857, allocations: 0 / 434.6 MB, free: 2.98 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.0007204/0.2864, allocations: 401.6 kB / 435 MB, free: 2.559 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.2865, allocations: 15.97 kB / 435 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.187e-05/0.2865, allocations: 46.69 kB / 435 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.2867, allocations: 32.78 kB / 435.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.2871, allocations: 187 kB / 435.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.2871, allocations: 8.562 kB / 435.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.2871, allocations: 11.94 kB / 435.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006912/0.2878, allocations: 369.7 kB / 435.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.2878, allocations: 0 / 435.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.2878, allocations: 11.94 kB / 435.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.2878, allocations: 3.984 kB / 435.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002364/0.2881, allocations: 79.95 kB / 435.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004151/0.2885, allocations: 296.6 kB / 436 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004704/0.2889, allocations: 185 kB / 436.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.2891, allocations: 93.95 kB / 436.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003842/0.2895, allocations: 59.94 kB / 436.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.2896, allocations: 38.56 kB / 436.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.533e-06/0.2896, allocations: 0 / 436.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005853/0.2901, allocations: 241.2 kB / 436.6 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.703e-05/0.2902, allocations: 114.8 kB / 436.7 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.2904, allocations: 194.6 kB / 436.9 MB, free: 448 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.2904, allocations: 25.7 kB / 437 MB, free: 416 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.539e-05/0.2905, allocations: 112.7 kB / 437.1 MB, free: 296 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.2906, allocations: 23.83 kB / 437.1 MB, free: 272 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.2906, allocations: 37.7 kB / 437.1 MB, free: 228 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.2908, allocations: 326.8 kB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.304e-05/0.2908, allocations: 39.97 kB / 437.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.291, allocations: 186.8 kB / 437.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.2913, allocations: 212.1 kB / 437.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2913, allocations: 0 / 437.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003368/0.2916, allocations: 217.4 kB / 438.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2916, allocations: 10.5 kB / 438.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.2916, allocations: 4 kB / 438.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.2917, allocations: 8 kB / 438.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.2918, allocations: 39.92 kB / 438.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.2918, allocations: 15.86 kB / 438.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.2919, allocations: 15.95 kB / 438.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.2919, allocations: 12.31 kB / 438.2 MB, free: 15.02 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.0001515/0.2921, allocations: 157.6 kB / 438.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003086/0.2924, allocations: 161.5 kB / 438.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003905/0.2928, allocations: 175.3 kB / 438.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.2928, allocations: 4 kB / 438.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2928, allocations: 0 / 438.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2928, allocations: 0 / 438.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000222/0.293, allocations: 184.5 kB / 438.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.293, allocations: 11.98 kB / 438.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.2932, allocations: 27.98 kB / 438.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2932, allocations: 3.938 kB / 438.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.2932, allocations: 8 kB / 438.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2932, allocations: 0 / 438.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.2932, allocations: 3.984 kB / 438.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004094/0.2936, allocations: 292.1 kB / 439.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.186e-05/0.2937, allocations: 43.81 kB / 439.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.474e-05/0.2937, allocations: 15.98 kB / 439.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.2939, allocations: 4 kB / 439.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.2939, allocations: 11.92 kB / 439.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.2939, allocations: 8 kB / 439.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.294, allocations: 152 kB / 439.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.294, allocations: 0 / 439.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.2943, allocations: 28 kB / 439.4 MB, free: 13.67 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.0009571/0.2953, allocations: 0.9277 MB / 440.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003216/0.2956, allocations: 136.9 kB / 440.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2956, allocations: 0 / 440.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.842e-05/0.2957, allocations: 8.047 kB / 440.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005847/0.2963, allocations: 144.5 kB / 440.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.2987, allocations: 2.171 MB / 442.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.2988, allocations: 123.5 kB / 443 MB, free: 9.922 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.228e-05/0.2989, allocations: 17.48 kB / 443 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.579e-05/0.299, allocations: 43.42 kB / 443 MB, free: 9.859 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.299, allocations: 3.938 kB / 443 MB, free: 9.855 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03248/0.3314, allocations: 4.993 MB / 448 MB, free: 4.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.37, allocations: 0 / 448 MB, free: 4.996 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_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.900776798836887]