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.001437/0.001437, allocations: 109.4 kB / 16.51 MB, free: 6.715 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.001616/0.001616, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.425/1.425, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 46.95 kB / 300.1 MB, free: 6.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1088, allocations: 49.45 MB / 349.5 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003252/0.1121, allocations: 1.904 MB / 351.4 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.1133, allocations: 0.674 MB / 352.1 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.2e-05/0.1134, allocations: 3.938 kB / 352.1 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.1135, allocations: 19.86 kB / 352.1 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.1137, allocations: 15.88 kB / 352.1 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.1141, allocations: 137.7 kB / 352.3 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.1143, allocations: 147.5 kB / 352.4 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.1145, allocations: 53.34 kB / 352.5 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.951e-05/0.1146, allocations: 55.7 kB / 352.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.1147, allocations: 55.7 kB / 352.6 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.92e-05/0.1147, allocations: 8 kB / 352.6 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.1148, allocations: 47.95 kB / 352.6 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.101e-05/0.1149, allocations: 35.89 kB / 352.7 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.883e-05/0.115, allocations: 63.48 kB / 352.7 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.1152, allocations: 183.4 kB / 352.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1152, allocations: 0 / 352.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.1153, allocations: 7.938 kB / 352.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1153, allocations: 0 / 352.9 MB, free: 1.305 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.0007146/0.116, allocations: 471.1 kB / 353.4 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.116, allocations: 8.031 kB / 353.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.318e-05/0.1161, allocations: 42.75 kB / 353.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.674e-05/0.1161, allocations: 16.75 kB / 353.4 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.1164, allocations: 247.8 kB / 353.7 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.1164, allocations: 8.562 kB / 353.7 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.1165, allocations: 11.94 kB / 353.7 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006702/0.1171, allocations: 318.5 kB / 354 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1172, allocations: 7.938 kB / 354 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.1172, allocations: 12 kB / 354 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.1172, allocations: 0 / 354 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.1175, allocations: 91.89 kB / 354.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000385/0.1179, allocations: 333.6 kB / 354.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004569/0.1183, allocations: 274.5 kB / 354.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.1185, allocations: 101.7 kB / 354.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006636/0.1192, allocations: 0.5856 MB / 355.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.1192, allocations: 34.56 kB / 355.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.552e-06/0.1192, allocations: 0 / 355.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006036/0.1199, allocations: 245.1 kB / 355.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.349e-05/0.12, allocations: 118.8 kB / 355.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.1201, allocations: 190.4 kB / 356 MB, free: 13.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.1202, allocations: 25.7 kB / 356 MB, free: 13.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.957e-05/0.1202, allocations: 104.6 kB / 356.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.1203, allocations: 19.8 kB / 356.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.295e-05/0.1203, allocations: 49.77 kB / 356.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1205, allocations: 326.8 kB / 356.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.758e-05/0.1206, allocations: 35.97 kB / 356.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.1208, allocations: 161.2 kB / 356.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.121, allocations: 200.1 kB / 356.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.121, allocations: 4 kB / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003318/0.1214, allocations: 217.5 kB / 357.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.1214, allocations: 15.19 kB / 357.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1214, allocations: 4 kB / 357.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.1214, allocations: 4 kB / 357.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.1216, allocations: 47.91 kB / 357.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.1216, allocations: 8 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.1217, allocations: 19.84 kB / 357.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.1218, allocations: 8 kB / 357.2 MB, free: 12.47 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.0001802/0.122, allocations: 147.6 kB / 357.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003185/0.1223, allocations: 173.2 kB / 357.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003741/0.1227, allocations: 175.4 kB / 357.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1227, allocations: 3.938 kB / 357.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1227, allocations: 0 / 357.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.1227, allocations: 7.984 kB / 357.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000229/0.1229, allocations: 225.4 kB / 357.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.123, allocations: 3.984 kB / 357.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001455/0.1231, allocations: 43.86 kB / 358 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1231, allocations: 0 / 358 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.1231, allocations: 4 kB / 358 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1232, allocations: 0 / 358 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1232, allocations: 3.984 kB / 358 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004085/0.1236, allocations: 292 kB / 358.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.541e-05/0.1237, allocations: 108.9 kB / 358.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.944e-05/0.1237, allocations: 12 kB / 358.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.1239, allocations: 15.98 kB / 358.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.25e-05/0.1239, allocations: 0 / 358.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.1239, allocations: 4 kB / 358.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001345/0.1241, allocations: 152.2 kB / 358.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1241, allocations: 0 / 358.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.1244, allocations: 28 kB / 358.6 MB, free: 10.99 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.0009422/0.1254, allocations: 0.9302 MB / 359.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003101/0.1257, allocations: 143.4 kB / 359.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1257, allocations: 4 kB / 359.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.105e-05/0.1258, allocations: 9.172 kB / 359.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006116/0.1264, allocations: 145.7 kB / 359.8 MB, free: 9.742 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.1281, allocations: 1.075 MB / 360.9 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.1285, allocations: 0.7363 MB / 361.6 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.058e-05/0.1286, allocations: 17.62 kB / 361.6 MB, free: 7.773 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.709e-05/0.1287, allocations: 43.42 kB / 361.7 MB, free: 7.73 MB / 302.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1287, allocations: 0 / 361.7 MB, free: 7.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01646/0.1451, allocations: 3.892 MB / 365.6 MB, free: 3.996 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/0.1454, allocations: 222.7 kB / 365.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.013, allocations: 0 / 365.8 MB, free: 3.742 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 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.mat","/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) Reference file matches