Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_FilterWithDifferentiation",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.001506/0.001507, allocations: 104 kB / 17.58 MB, free: 5.418 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.00159/0.00159, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 55.92 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08723/0.08844, allocations: 46.64 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.002745/0.09123, allocations: 1.593 MB / 329 MB, free: 2.77 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004417/0.09567, allocations: 3.216 MB / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.09581, allocations: 0 / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.09616, allocations: 59.69 kB / 332.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.301e-05/0.09623, allocations: 7.875 kB / 332.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002935/0.09917, allocations: 1.423 MB / 333.7 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002049/0.09939, allocations: 151.6 kB / 333.8 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.567e-05/0.09949, allocations: 24.89 kB / 333.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.045e-05/0.09956, allocations: 47.86 kB / 333.9 MB, free: 13.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.351e-05/0.09966, allocations: 59.75 kB / 333.9 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.252e-05/0.09969, allocations: 8 kB / 334 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001518/0.1012, allocations: 1.382 MB / 335.3 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.844e-05/0.1013, allocations: 35.84 kB / 335.4 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.554e-05/0.1014, allocations: 55.66 kB / 335.4 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.1025, allocations: 1.197 MB / 336.6 MB, free: 11.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1025, allocations: 0 / 336.6 MB, free: 11.09 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1025, allocations: 0 / 336.6 MB, free: 11.09 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1026, allocations: 0 / 336.6 MB, free: 11.09 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001007/0.1036, allocations: 0.5691 MB / 337.2 MB, free: 10.47 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.1036, allocations: 8.031 kB / 337.2 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.377e-05/0.1037, allocations: 46.67 kB / 337.2 MB, free: 10.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.708e-05/0.1037, allocations: 12.75 kB / 337.3 MB, free: 10.4 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.104, allocations: 204.1 kB / 337.5 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.104, allocations: 8.375 kB / 337.5 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.529e-05/0.104, allocations: 16.11 kB / 337.5 MB, free: 10.14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.1043, allocations: 125 kB / 337.6 MB, free: 9.996 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.1043, allocations: 4 kB / 337.6 MB, free: 9.992 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.1043, allocations: 4 kB / 337.6 MB, free: 9.988 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.1043, allocations: 0 / 337.6 MB, free: 9.988 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/0.1045, allocations: 65.16 kB / 337.7 MB, free: 9.926 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005426/0.105, allocations: 388.4 kB / 338.1 MB, free: 9.496 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.1054, allocations: 126.6 kB / 338.2 MB, free: 9.363 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.249e-05/0.1055, allocations: 44.77 kB / 338.2 MB, free: 9.316 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.1055, allocations: 4 kB / 338.2 MB, free: 9.312 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.1055, allocations: 38.69 kB / 338.3 MB, free: 9.266 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.1056, allocations: 0 / 338.3 MB, free: 9.266 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.002272/0.1078, allocations: 1.215 MB / 339.5 MB, free: 7.918 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.625e-05/0.1079, allocations: 128.5 kB / 339.6 MB, free: 7.762 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.1081, allocations: 178.3 kB / 339.8 MB, free: 7.578 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.1081, allocations: 25.7 kB / 339.8 MB, free: 7.547 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.07e-05/0.1082, allocations: 120.4 kB / 339.9 MB, free: 7.426 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.179e-05/0.1082, allocations: 47.25 kB / 340 MB, free: 7.379 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.497e-05/0.1083, allocations: 49.7 kB / 340 MB, free: 7.324 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1085, allocations: 322.8 kB / 340.3 MB, free: 7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.1086, allocations: 95.94 kB / 340.4 MB, free: 6.906 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.1088, allocations: 135.4 kB / 340.6 MB, free: 6.762 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002951/0.1091, allocations: 206.2 kB / 340.8 MB, free: 6.559 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1091, allocations: 0 / 340.8 MB, free: 6.559 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004952/0.1096, allocations: 306 kB / 341.1 MB, free: 6.25 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1097, allocations: 4 kB / 341.1 MB, free: 6.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.1097, allocations: 0 / 341.1 MB, free: 6.246 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/0.1099, allocations: 44.81 kB / 341.1 MB, free: 6.199 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.11, allocations: 39.86 kB / 341.1 MB, free: 6.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.1112, allocations: 1.519 MB / 342.7 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.762e-05/0.1113, allocations: 8.031 kB / 342.7 MB, free: 4.492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.1113, allocations: 4 kB / 342.7 MB, free: 4.488 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001146/0.1115, allocations: 137.8 kB / 342.8 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.397e-05/0.1115, allocations: 19.8 kB / 342.8 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.944e-05/0.1116, allocations: 25.59 kB / 342.9 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.1116, allocations: 7.938 kB / 342.9 MB, free: 4.293 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1116, allocations: 3.938 kB / 342.9 MB, free: 4.289 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1116, allocations: 0 / 342.9 MB, free: 4.289 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002456/0.1119, allocations: 245.5 kB / 343.1 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1119, allocations: 0 / 343.1 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002697/0.1121, allocations: 55.91 kB / 343.2 MB, free: 3.945 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.1122, allocations: 0 / 343.2 MB, free: 3.945 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.1122, allocations: 8 kB / 343.2 MB, free: 3.938 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1122, allocations: 0 / 343.2 MB, free: 3.938 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1122, allocations: 11.92 kB / 343.2 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000511/0.1127, allocations: 405.3 kB / 343.6 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.533e-05/0.1128, allocations: 92.95 kB / 343.7 MB, free: 3.406 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.1128, allocations: 4 kB / 343.7 MB, free: 3.402 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.1129, allocations: 4 kB / 343.7 MB, free: 3.398 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.569e-05/0.113, allocations: 15.92 kB / 343.7 MB, free: 3.383 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.417e-06/0.113, allocations: 8 kB / 343.7 MB, free: 3.375 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.265e-05/0.1131, allocations: 128.2 kB / 343.8 MB, free: 3.25 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1131, allocations: 0 / 343.8 MB, free: 3.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.001403/0.1145, allocations: 0.5156 MB / 344.3 MB, free: 2.734 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (der1.u,der2.u,der3.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.001888/0.1164, allocations: 1.387 MB / 345.7 MB, free: 1.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007382/0.1171, allocations: 401.9 kB / 346.1 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1172, allocations: 3.938 kB / 346.1 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.1173, allocations: 91.88 kB / 346.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.1177, allocations: 31.92 kB / 346.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.1205, allocations: 2.446 MB / 348.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002618/0.1208, allocations: 0.7319 MB / 349.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.171e-05/0.1209, allocations: 29.06 kB / 349.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.689e-05/0.121, allocations: 47.42 kB / 349.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.121, allocations: 0 / 349.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03104/0.152, allocations: 9.817 MB / 359.3 MB, free: 3.531 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.152/9.304, allocations: 8.281 kB / 359.3 MB, free: 3.523 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation_res.csv --start-time 0 --stop-time 0.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00036 Modelica_3_2_3_Modelica_Blocks_Examples_FilterWithDifferentiation.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/FilterWithDifferentiation/FilterWithDifferentiation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches