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.001182/0.001182, allocations: 108.5 kB / 16.92 MB, free: 6.145 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.00111/0.00111, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.468/1.468, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001005/0.001005, allocations: 54.75 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1082, allocations: 49.43 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003063/0.1113, allocations: 1.847 MB / 352 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.1125, allocations: 0.6971 MB / 352.7 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.1127, allocations: 4 kB / 352.7 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.1129, allocations: 23.73 kB / 352.7 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.113, allocations: 27.78 kB / 352.8 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005637/0.1136, allocations: 153.5 kB / 352.9 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001915/0.1138, allocations: 139.7 kB / 353 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.1139, allocations: 69.31 kB / 353.1 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.114, allocations: 51.73 kB / 353.2 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.1142, allocations: 63.69 kB / 353.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.219e-05/0.1142, allocations: 15.94 kB / 353.2 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.1143, allocations: 51.95 kB / 353.3 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.785e-05/0.1144, allocations: 47.78 kB / 353.3 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.695e-05/0.1145, allocations: 71.53 kB / 353.4 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002332/0.1148, allocations: 191.4 kB / 353.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1148, allocations: 0 / 353.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1148, allocations: 0 / 353.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.1148, allocations: 0 / 353.6 MB, free: 0.875 MB / 286.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.0006818/0.1155, allocations: 479.1 kB / 354.1 MB, free: 368 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.1155, allocations: 8.031 kB / 354.1 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.729e-05/0.1156, allocations: 42.73 kB / 354.1 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.1156, allocations: 16.75 kB / 354.1 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002509/0.1159, allocations: 247.8 kB / 354.4 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.1159, allocations: 8.641 kB / 354.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.35e-05/0.116, allocations: 15.94 kB / 354.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006489/0.1166, allocations: 318.5 kB / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.1166, allocations: 0 / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1167, allocations: 3.984 kB / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.1167, allocations: 8 kB / 354.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000238/0.1169, allocations: 87.81 kB / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003813/0.1173, allocations: 341.6 kB / 355.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004528/0.1178, allocations: 265.7 kB / 355.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001943/0.118, allocations: 105.4 kB / 355.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006501/0.1186, allocations: 0.5855 MB / 356.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.1187, allocations: 42.78 kB / 356.1 MB, free: 14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.583e-06/0.1187, allocations: 0 / 356.1 MB, free: 14 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005822/0.1193, allocations: 245.2 kB / 356.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/0.1194, allocations: 110.8 kB / 356.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.1195, allocations: 195.3 kB / 356.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.1196, allocations: 25.7 kB / 356.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.758e-05/0.1196, allocations: 108.6 kB / 356.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/0.1197, allocations: 19.75 kB / 356.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-05/0.1197, allocations: 37.7 kB / 356.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.1198, allocations: 334.8 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.101e-05/0.1199, allocations: 31.98 kB / 357.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.1201, allocations: 169.1 kB / 357.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.1203, allocations: 200.1 kB / 357.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1203, allocations: 0 / 357.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003385/0.1207, allocations: 224.9 kB / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.1207, allocations: 8 kB / 357.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.1207, allocations: 4.594 kB / 357.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.1208, allocations: 8 kB / 357.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.1209, allocations: 43.92 kB / 357.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.1209, allocations: 11.92 kB / 357.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.121, allocations: 23.83 kB / 357.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.1211, allocations: 12 kB / 357.9 MB, free: 12.03 MB / 302.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.0001258/0.1212, allocations: 149.4 kB / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003073/0.1215, allocations: 160 kB / 358.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003596/0.1219, allocations: 183.4 kB / 358.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.1219, allocations: 4 kB / 358.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1219, allocations: 3.938 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1219, allocations: 0 / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002147/0.1221, allocations: 237.3 kB / 358.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.1222, allocations: 0 / 358.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.1223, allocations: 31.97 kB / 358.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.1223, allocations: 8 kB / 358.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.1224, allocations: 0 / 358.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1224, allocations: 0 / 358.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1224, allocations: 0 / 358.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000407/0.1228, allocations: 291.9 kB / 358.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.503e-05/0.1229, allocations: 112.9 kB / 359.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.763e-05/0.1229, allocations: 15.98 kB / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.1231, allocations: 8 kB / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.507e-05/0.1231, allocations: 0 / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.1231, allocations: 7.984 kB / 359.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000119/0.1233, allocations: 147.4 kB / 359.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1233, allocations: 0 / 359.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003315/0.1236, allocations: 32 kB / 359.3 MB, free: 10.56 MB / 302.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.0008894/0.1245, allocations: 0.9265 MB / 360.2 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003439/0.1249, allocations: 151.8 kB / 360.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1249, allocations: 0 / 360.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.5e-05/0.1249, allocations: 15.92 kB / 360.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005696/0.1255, allocations: 144.9 kB / 360.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.1271, allocations: 1.035 MB / 361.5 MB, free: 8.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.1273, allocations: 0.7283 MB / 362.3 MB, free: 7.391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.08e-05/0.1274, allocations: 21.55 kB / 362.3 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.851e-05/0.1275, allocations: 47.36 kB / 362.3 MB, free: 7.324 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1275, allocations: 0 / 362.3 MB, free: 7.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.1484, allocations: 4.125 MB / 366.4 MB, free: 3.332 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.974/8.123, allocations: 7.547 kB / 366.5 MB, free: 3.328 MB / 302.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