Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 113 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 191.9 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.4128, allocations: 49.43 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003726/0.4166, allocations: 1.849 MB / 402.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.418, allocations: 0.6932 MB / 402.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.4181, allocations: 7.938 kB / 402.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.4183, allocations: 19.8 kB / 402.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.4185, allocations: 23.8 kB / 402.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005639/0.419, allocations: 155.6 kB / 403 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.4193, allocations: 155.6 kB / 403.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.4194, allocations: 53.52 kB / 403.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.913e-05/0.4195, allocations: 59.72 kB / 403.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.4197, allocations: 63.62 kB / 403.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.4197, allocations: 16 kB / 403.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.166e-05/0.4198, allocations: 47.97 kB / 403.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.433e-05/0.4199, allocations: 31.91 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.79e-05/0.42, allocations: 79.52 kB / 403.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002735/0.4202, allocations: 198.2 kB / 403.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.4203, allocations: 0 / 403.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4203, allocations: 0 / 403.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.4203, allocations: 4 kB / 403.7 MB, free: 5.387 MB / 318.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.0007484/0.421, allocations: 482.6 kB / 404.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.4211, allocations: 12.03 kB / 404.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.534e-05/0.4211, allocations: 46.73 kB / 404.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.005e-05/0.4212, allocations: 16.84 kB / 404.2 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003564/0.4216, allocations: 248 kB / 404.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.4216, allocations: 8.562 kB / 404.5 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.4216, allocations: 11.94 kB / 404.5 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007206/0.4223, allocations: 326.2 kB / 404.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.4224, allocations: 3.938 kB / 404.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.4224, allocations: 4 kB / 404.8 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.4224, allocations: 4 kB / 404.8 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/0.4227, allocations: 83.88 kB / 404.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004725/0.4231, allocations: 345.5 kB / 405.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005028/0.4236, allocations: 273.9 kB / 405.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.4238, allocations: 93.73 kB / 405.6 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006782/0.4245, allocations: 0.5895 MB / 406.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/0.4246, allocations: 38.78 kB / 406.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.4246, allocations: 0 / 406.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006523/0.4253, allocations: 251.8 kB / 406.5 MB, free: 2.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.4254, allocations: 110.8 kB / 406.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.4256, allocations: 191.3 kB / 406.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.4256, allocations: 33.7 kB / 406.8 MB, free: 1.883 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.457e-05/0.4257, allocations: 104.6 kB / 406.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.502e-05/0.4258, allocations: 15.89 kB / 406.9 MB, free: 1.758 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.281e-05/0.4258, allocations: 41.7 kB / 407 MB, free: 1.711 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.426, allocations: 330.8 kB / 407.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.695e-05/0.4261, allocations: 39.97 kB / 407.3 MB, free: 1.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.4263, allocations: 165.1 kB / 407.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/0.4266, allocations: 204.1 kB / 407.7 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4266, allocations: 3.938 kB / 407.7 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003513/0.427, allocations: 217.2 kB / 407.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.427, allocations: 8 kB / 407.9 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.427, allocations: 4 kB / 407.9 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.4271, allocations: 4 kB / 407.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.4272, allocations: 47.91 kB / 408 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.4272, allocations: 7.938 kB / 408 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.4274, allocations: 20.39 kB / 408 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.4274, allocations: 12 kB / 408 MB, free: 0.5352 MB / 318.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.0001611/0.4275, allocations: 157.8 kB / 408.2 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002973/0.4278, allocations: 161.4 kB / 408.3 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003507/0.4282, allocations: 182 kB / 408.5 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.4282, allocations: 11.92 kB / 408.5 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4282, allocations: 4 kB / 408.5 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.4282, allocations: 0 / 408.5 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002332/0.4285, allocations: 229.5 kB / 408.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.4285, allocations: 0 / 408.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.4287, allocations: 27.98 kB / 408.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.4287, allocations: 4 kB / 408.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.4287, allocations: 7.984 kB / 408.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4287, allocations: 0 / 408.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4287, allocations: 0 / 408.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000416/0.4291, allocations: 294.6 kB / 409.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.4292, allocations: 120.9 kB / 409.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.4293, allocations: 8 kB / 409.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.4294, allocations: 7.984 kB / 409.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.579e-05/0.4294, allocations: 0 / 409.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.4295, allocations: 12 kB / 409.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.4296, allocations: 147.3 kB / 409.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4296, allocations: 0 / 409.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003065/0.4299, allocations: 36 kB / 409.4 MB, free: 15.04 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.0009852/0.4309, allocations: 0.9221 MB / 410.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003361/0.4313, allocations: 144.6 kB / 410.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.4313, allocations: 4.312 kB / 410.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.812e-05/0.4313, allocations: 8 kB / 410.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006036/0.4319, allocations: 149.6 kB / 410.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.4342, allocations: 2.152 MB / 412.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.4346, allocations: 0.7396 MB / 413.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.029e-05/0.4346, allocations: 17.55 kB / 413.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.794e-05/0.4347, allocations: 43.42 kB / 413.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4347, allocations: 0 / 413.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.457, allocations: 4.246 MB / 417.8 MB, free: 6.523 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.29/8.747, allocations: 12.62 kB / 417.8 MB, free: 6.512 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_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