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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001344/0.001344, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00161/0.00161, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.585/1.585, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 56.14 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.3991, allocations: 50.54 MB / 408.8 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.00366/0.4029, allocations: 1.869 MB / 410.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.4043, allocations: 0.7478 MB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.4045, allocations: 7.938 kB / 411.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.4047, allocations: 19.8 kB / 411.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.4049, allocations: 23.8 kB / 411.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006512/0.4056, allocations: 171.3 kB / 411.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002393/0.4058, allocations: 159.5 kB / 411.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.406, allocations: 53.52 kB / 411.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.4062, allocations: 63.75 kB / 411.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.4064, allocations: 67.64 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.982e-05/0.4064, allocations: 12 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.4065, allocations: 59.89 kB / 412 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.52e-05/0.4066, allocations: 43.84 kB / 412 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.676e-05/0.4067, allocations: 75.53 kB / 412.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003211/0.407, allocations: 202.1 kB / 412.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.407, allocations: 0 / 412.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.142e-06/0.4071, allocations: 4 kB / 412.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.4071, allocations: 0 / 412.3 MB, free: 14.07 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.0008557/0.4079, allocations: 486.7 kB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.408, allocations: 8.031 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.357e-05/0.4081, allocations: 38.75 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001998/0.4083, allocations: 32.78 kB / 412.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004352/0.4087, allocations: 252.1 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.4087, allocations: 8.562 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.4088, allocations: 11.94 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008109/0.4096, allocations: 330.2 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.4096, allocations: 3.984 kB / 413.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.4096, allocations: 0 / 413.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.4097, allocations: 4 kB / 413.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.4099, allocations: 79.89 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005468/0.4105, allocations: 353.5 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005491/0.411, allocations: 258.3 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000212/0.4112, allocations: 112.6 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007764/0.412, allocations: 0.5817 MB / 414.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.4121, allocations: 34.56 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.413e-06/0.4121, allocations: 4 kB / 414.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006681/0.4128, allocations: 241.3 kB / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.4129, allocations: 118.8 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00024/0.4132, allocations: 195.2 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.4132, allocations: 29.7 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.829e-05/0.4133, allocations: 104.7 kB / 415.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.796e-05/0.4134, allocations: 19.89 kB / 415.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.62e-05/0.4135, allocations: 37.72 kB / 415.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002059/0.4137, allocations: 330.8 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.818e-05/0.4138, allocations: 39.98 kB / 416 MB, free: 10.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.414, allocations: 166.9 kB / 416.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000314/0.4143, allocations: 204.1 kB / 416.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.4143, allocations: 0 / 416.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003916/0.4147, allocations: 229.3 kB / 416.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.4148, allocations: 8 kB / 416.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.4148, allocations: 4 kB / 416.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.864e-05/0.4148, allocations: 4 kB / 416.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.415, allocations: 43.92 kB / 416.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/0.415, allocations: 8 kB / 416.6 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.4151, allocations: 23.81 kB / 416.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.4151, allocations: 12 kB / 416.7 MB, free: 9.199 MB / 334.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.000205/0.4154, allocations: 161.2 kB / 416.8 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003425/0.4157, allocations: 161.4 kB / 417 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003963/0.4161, allocations: 182 kB / 417.1 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.4161, allocations: 0 / 417.1 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.4162, allocations: 4 kB / 417.1 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.4162, allocations: 0 / 417.1 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002698/0.4164, allocations: 237.4 kB / 417.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4165, allocations: 0 / 417.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/0.4166, allocations: 35.91 kB / 417.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.4166, allocations: 0 / 417.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.4166, allocations: 8 kB / 417.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.4166, allocations: 0 / 417.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4166, allocations: 0 / 417.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004545/0.4171, allocations: 288.1 kB / 417.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.4172, allocations: 116.9 kB / 417.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.248e-05/0.4173, allocations: 15.92 kB / 417.8 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.4175, allocations: 4 kB / 417.8 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.4175, allocations: 7.969 kB / 417.8 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.4175, allocations: 8 kB / 417.9 MB, free: 7.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000149/0.4177, allocations: 147 kB / 418 MB, free: 7.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4177, allocations: 4 kB / 418 MB, free: 7.738 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003284/0.418, allocations: 32 kB / 418 MB, free: 7.707 MB / 334.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.001094/0.4191, allocations: 0.9238 MB / 419 MB, free: 6.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003662/0.4195, allocations: 144.8 kB / 419.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4195, allocations: 0 / 419.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.308e-05/0.4196, allocations: 12.05 kB / 419.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000681/0.4203, allocations: 153.5 kB / 419.3 MB, free: 6.445 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002645/0.4229, allocations: 2.173 MB / 421.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.4234, allocations: 0.7359 MB / 422.2 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.938e-05/0.4234, allocations: 13.55 kB / 422.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.4236, allocations: 43.42 kB / 422.2 MB, free: 3.262 MB / 334.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4236, allocations: 0 / 422.2 MB, free: 3.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02794/0.4515, allocations: 4.281 MB / 426.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.373/8.825, allocations: 4.297 kB / 426.5 MB, free: 15.13 MB / 350.1 MB (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 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) "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! " 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