Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009982/0.0009978, allocations: 91.34 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001246, allocations: 201.5 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.8 MB / 246.8 MB, free: 11.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002668/0.0002668, allocations: 8 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09143/0.09173, allocations: 51.52 MB / 359.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.001587/0.09334, allocations: 1.313 MB / 360.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008769/0.09424, allocations: 0.5144 MB / 361.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.273e-05/0.09433, allocations: 0 / 361.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.748e-05/0.09437, allocations: 7.875 kB / 361.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.09448, allocations: 19.91 kB / 361.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.09476, allocations: 47.91 kB / 361.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.582e-05/0.09485, allocations: 43.84 kB / 361.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.345e-05/0.09493, allocations: 12.17 kB / 361.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.09503, allocations: 35.84 kB / 361.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.558e-05/0.0951, allocations: 23.86 kB / 361.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.798e-06/0.09512, allocations: 0 / 361.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.397e-05/0.09516, allocations: 8 kB / 361.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.397e-05/0.0952, allocations: 7.938 kB / 361.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.188e-05/0.09525, allocations: 65.36 kB / 361.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.389e-05/0.09535, allocations: 51.8 kB / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.09536, allocations: 0 / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.09536, allocations: 0 / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.09537, allocations: 0 / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000351/0.09573, allocations: 367.5 kB / 361.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.09577, allocations: 16.02 kB / 361.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.243e-05/0.09581, allocations: 42.69 kB / 361.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.09593, allocations: 20.83 kB / 361.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001592/0.0961, allocations: 192.7 kB / 362.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.556e-06/0.09612, allocations: 4.125 kB / 362.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.09613, allocations: 4 kB / 362.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002229/0.09636, allocations: 121.9 kB / 362.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.882e-06/0.09638, allocations: 3.938 kB / 362.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.09639, allocations: 0 / 362.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.0964, allocations: 0 / 362.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.005e-05/0.0965, allocations: 27.98 kB / 362.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002752/0.09678, allocations: 282.4 kB / 362.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000105/0.09689, allocations: 71.78 kB / 362.6 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.389e-05/0.09697, allocations: 38.62 kB / 362.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.09699, allocations: 7.984 kB / 362.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.09702, allocations: 30.56 kB / 362.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.09702, allocations: 0 / 362.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002616/0.09729, allocations: 93.45 kB / 362.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.957e-05/0.09738, allocations: 110.8 kB / 362.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.09753, allocations: 149.7 kB / 363.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.09756, allocations: 25.7 kB / 363.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.889e-05/0.09762, allocations: 92.52 kB / 363.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.284e-05/0.09765, allocations: 7.984 kB / 363.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.782e-05/0.09769, allocations: 9.719 kB / 363.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.09782, allocations: 314.8 kB / 363.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.917e-05/0.09788, allocations: 11.98 kB / 363.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.637e-05/0.09794, allocations: 39.42 kB / 363.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.898e-05/0.09805, allocations: 51.36 kB / 363.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.09806, allocations: 0 / 363.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001604/0.09822, allocations: 81.47 kB / 363.7 MB, free: 8.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.09825, allocations: 4 kB / 363.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.09826, allocations: 7.938 kB / 363.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.09828, allocations: 3.938 kB / 363.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.951e-05/0.09835, allocations: 11.98 kB / 363.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.09837, allocations: 3.938 kB / 363.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.049e-05/0.09841, allocations: 4.125 kB / 363.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-06/0.09843, allocations: 8 kB / 363.7 MB, free: 8.527 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.0001056/0.09854, allocations: 122.9 kB / 363.8 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.395e-05/0.09863, allocations: 53.55 kB / 363.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.425e-05/0.09867, allocations: 19.94 kB / 363.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.09868, allocations: 0 / 363.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.09869, allocations: 3.938 kB / 363.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.0987, allocations: 0 / 363.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001759/0.09888, allocations: 169.7 kB / 364.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.09889, allocations: 4.062 kB / 364.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.762e-05/0.09895, allocations: 11.98 kB / 364.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.391e-06/0.09896, allocations: 4 kB / 364.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-06/0.09897, allocations: 0 / 364.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.09898, allocations: 0 / 364.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.09899, allocations: 11.92 kB / 364.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001967/0.09919, allocations: 185.1 kB / 364.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.769e-05/0.09926, allocations: 93 kB / 364.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.09928, allocations: 3.984 kB / 364.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.677e-05/0.09935, allocations: 4 kB / 364.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.878e-05/0.09939, allocations: 3.938 kB / 364.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.0994, allocations: 4 kB / 364.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.4e-05/0.0995, allocations: 118.6 kB / 364.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09951, allocations: 0 / 364.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002261/0.09974, allocations: 8 kB / 364.5 MB, free: 7.617 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (4): * Single equations (assignments): 4 * 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.0004561/0.1002, allocations: 0.714 MB / 365.2 MB, free: 6.871 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.1003, allocations: 39.91 kB / 365.3 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1003, allocations: 0 / 365.3 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.764e-05/0.1004, allocations: 8 kB / 365.3 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.1007, allocations: 38.84 kB / 365.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.1019, allocations: 1.432 MB / 366.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.1022, allocations: 0.6926 MB / 367.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.077e-05/0.1022, allocations: 7.984 kB / 367.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.392e-05/0.1022, allocations: 19.38 kB / 367.5 MB, free: 4.5 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1022, allocations: 0 / 367.5 MB, free: 4.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01007/0.1123, allocations: 1.442 MB / 368.9 MB, free: 3.199 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002283/0.1126, allocations: 219.3 kB / 369.1 MB, free: 2.938 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/1.76, allocations: 4 kB / 369.1 MB, free: 2.934 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches