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.001387/0.001387, allocations: 107.1 kB / 17.33 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001411/0.001411, allocations: 205.8 kB / 18.26 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 67.7 kB / 306.6 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1072, allocations: 50.52 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003784/0.111, allocations: 1.654 MB / 358.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.1124, allocations: 0.5298 MB / 359.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.1126, allocations: 0 / 359.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.133e-05/0.1128, allocations: 7.922 kB / 359.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.113, allocations: 11.92 kB / 359.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004453/0.1135, allocations: 55.89 kB / 359.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.1136, allocations: 43.86 kB / 359.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.1138, allocations: 32.12 kB / 359.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.1139, allocations: 27.86 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.169e-05/0.114, allocations: 15.92 kB / 359.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/0.114, allocations: 7.938 kB / 359.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.229e-05/0.1141, allocations: 8 kB / 359.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.1142, allocations: 15.98 kB / 359.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.283e-05/0.1142, allocations: 27.73 kB / 359.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.1144, allocations: 63.8 kB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1144, allocations: 3.938 kB / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1144, allocations: 0 / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1144, allocations: 0 / 359.6 MB, free: 11.81 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.0006569/0.1151, allocations: 383.3 kB / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1151, allocations: 8.031 kB / 360 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.798e-05/0.1152, allocations: 42.73 kB / 360 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.1154, allocations: 16.78 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.1156, allocations: 193.7 kB / 360.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.1157, allocations: 8.125 kB / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.1157, allocations: 4 kB / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.116, allocations: 117.9 kB / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.1161, allocations: 0 / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.1161, allocations: 0 / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.1161, allocations: 11.92 kB / 360.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.786e-05/0.1162, allocations: 19.98 kB / 360.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004045/0.1166, allocations: 278.5 kB / 360.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001529/0.1168, allocations: 71.78 kB / 360.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.237e-05/0.1169, allocations: 26.64 kB / 360.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.03e-05/0.1169, allocations: 11.98 kB / 360.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.1169, allocations: 34.56 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.262e-06/0.117, allocations: 0 / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003172/0.1173, allocations: 81.52 kB / 360.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.749e-05/0.1174, allocations: 110.8 kB / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.1175, allocations: 151.8 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.1176, allocations: 26.08 kB / 361.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.05e-05/0.1176, allocations: 100 kB / 361.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.1177, allocations: 0 / 361.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-05/0.1177, allocations: 17.7 kB / 361.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1179, allocations: 318.8 kB / 361.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.084e-05/0.118, allocations: 11.98 kB / 361.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.275e-05/0.118, allocations: 35.36 kB / 361.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.1181, allocations: 51.36 kB / 361.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1182, allocations: 4 kB / 361.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001487/0.1183, allocations: 61.62 kB / 361.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.1183, allocations: 12.03 kB / 361.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1184, allocations: 3.938 kB / 361.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.1184, allocations: 0 / 361.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.896e-05/0.1185, allocations: 11.98 kB / 361.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.1185, allocations: 7.938 kB / 361.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.085e-05/0.1185, allocations: 0 / 361.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.1186, allocations: 4 kB / 361.8 MB, free: 9.312 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.0001247/0.1187, allocations: 122.9 kB / 361.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.761e-05/0.1188, allocations: 57.55 kB / 361.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.07e-05/0.1188, allocations: 11.86 kB / 362 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.1188, allocations: 4 kB / 362 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1188, allocations: 3.938 kB / 362 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1189, allocations: 4 kB / 362 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.1191, allocations: 169.7 kB / 362.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1191, allocations: 3.938 kB / 362.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.186e-05/0.1191, allocations: 11.98 kB / 362.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1191, allocations: 0 / 362.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.1192, allocations: 8 kB / 362.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1192, allocations: 4.062 kB / 362.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.1192, allocations: 3.938 kB / 362.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001927/0.1194, allocations: 173.2 kB / 362.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.144e-05/0.1195, allocations: 101 kB / 362.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.1195, allocations: 0 / 362.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.055e-05/0.1196, allocations: 11.98 kB / 362.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.49e-05/0.1196, allocations: 3.938 kB / 362.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.1196, allocations: 0 / 362.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.435e-05/0.1197, allocations: 118.1 kB / 362.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1197, allocations: 0 / 362.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002329/0.12, allocations: 8 kB / 362.6 MB, free: 8.402 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.0006008/0.1206, allocations: 0.7101 MB / 363.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001675/0.1208, allocations: 39.91 kB / 363.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.1208, allocations: 0 / 363.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.156e-05/0.1208, allocations: 16.19 kB / 363.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004673/0.1213, allocations: 27.95 kB / 363.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.1231, allocations: 1.402 MB / 364.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.1235, allocations: 0.6962 MB / 365.5 MB, free: 5.348 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.8e-05/0.1236, allocations: 7.984 kB / 365.5 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.1236, allocations: 19.44 kB / 365.5 MB, free: 5.32 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1237, allocations: 0 / 365.5 MB, free: 5.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01262/0.1363, allocations: 1.562 MB / 367.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.1365, allocations: 224.3 kB / 367.3 MB, free: 3.629 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.035/2.172, allocations: 0 / 367.3 MB, free: 3.629 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