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.001485/0.001484, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001516/0.001516, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 56.27 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1212, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003876/0.1252, allocations: 1.591 MB / 359.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.1264, allocations: 0.5376 MB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.1265, allocations: 11.88 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.827e-05/0.1266, allocations: 3.938 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.1268, allocations: 11.88 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004071/0.1272, allocations: 55.88 kB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001159/0.1273, allocations: 47.84 kB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.1274, allocations: 24.16 kB / 359.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.1276, allocations: 35.8 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.139e-05/0.1276, allocations: 15.92 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.1277, allocations: 4 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.848e-05/0.1277, allocations: 7.984 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.003e-05/0.1278, allocations: 15.92 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.091e-05/0.1278, allocations: 31.75 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.128, allocations: 55.8 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.128, allocations: 0 / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.128, allocations: 4 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.128, allocations: 0 / 360 MB, free: 11.55 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.0005547/0.1286, allocations: 387.3 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.1286, allocations: 8.031 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.808e-05/0.1287, allocations: 34.73 kB / 360.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001917/0.1289, allocations: 16.84 kB / 360.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.1292, allocations: 204.2 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.1292, allocations: 4.125 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.1292, allocations: 15.94 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/0.1295, allocations: 109.9 kB / 360.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.1296, allocations: 3.984 kB / 360.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.1296, allocations: 0 / 360.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.1296, allocations: 0 / 360.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.578e-05/0.1297, allocations: 27.92 kB / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004061/0.1301, allocations: 278.5 kB / 361.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.1303, allocations: 71.78 kB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.195e-05/0.1303, allocations: 30.64 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.1304, allocations: 7.969 kB / 361.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.1304, allocations: 38.5 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.503e-06/0.1304, allocations: 0 / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003142/0.1307, allocations: 89.52 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.549e-05/0.1308, allocations: 102.8 kB / 361.4 MB, free: 9.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.131, allocations: 149.7 kB / 361.6 MB, free: 9.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.131, allocations: 29.7 kB / 361.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.309e-05/0.1311, allocations: 95.98 kB / 361.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.1311, allocations: 384 / 361.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.386e-05/0.1312, allocations: 25.7 kB / 361.7 MB, free: 9.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1313, allocations: 314.8 kB / 362 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.917e-05/0.1314, allocations: 15.98 kB / 362 MB, free: 9.254 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.891e-05/0.1315, allocations: 35.42 kB / 362.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.1316, allocations: 47.36 kB / 362.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.1316, allocations: 0 / 362.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001574/0.1317, allocations: 73.47 kB / 362.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.1318, allocations: 8 kB / 362.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1318, allocations: 128 / 362.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.1318, allocations: 4 kB / 362.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.573e-05/0.1319, allocations: 11.98 kB / 362.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.1319, allocations: 7.875 kB / 362.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.43e-05/0.132, allocations: 4 kB / 362.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.132, allocations: 4 kB / 362.2 MB, free: 9.031 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 9.671e-05/0.1321, allocations: 122.9 kB / 362.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.773e-05/0.1322, allocations: 45.61 kB / 362.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.702e-05/0.1322, allocations: 19.92 kB / 362.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1322, allocations: 7.938 kB / 362.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.1322, allocations: 3.938 kB / 362.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1322, allocations: 0 / 362.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.1324, allocations: 169.7 kB / 362.6 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1325, allocations: 0 / 362.6 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.433e-05/0.1325, allocations: 11.98 kB / 362.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1325, allocations: 0 / 362.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.1325, allocations: 7.938 kB / 362.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1326, allocations: 0 / 362.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1326, allocations: 3.938 kB / 362.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.1328, allocations: 181.1 kB / 362.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.648e-05/0.1329, allocations: 93 kB / 362.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.1329, allocations: 4 kB / 362.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.847e-05/0.133, allocations: 3.984 kB / 362.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.614e-05/0.133, allocations: 11.94 kB / 362.9 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.133, allocations: 0 / 362.9 MB, free: 8.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.4e-05/0.1331, allocations: 114.6 kB / 363 MB, free: 8.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1331, allocations: 0 / 363 MB, free: 8.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002276/0.1333, allocations: 4 kB / 363 MB, free: 8.137 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.0004715/0.1338, allocations: 0.714 MB / 363.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001676/0.134, allocations: 35.97 kB / 363.8 MB, free: 7.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.134, allocations: 3.938 kB / 363.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.838e-05/0.1341, allocations: 4 kB / 363.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004412/0.1345, allocations: 32.45 kB / 363.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.136, allocations: 1.396 MB / 365.2 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.1363, allocations: 0.6924 MB / 365.9 MB, free: 5.098 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.926e-05/0.1363, allocations: 12.22 kB / 365.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.798e-05/0.1364, allocations: 11.44 kB / 365.9 MB, free: 5.074 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1364, allocations: 0 / 365.9 MB, free: 5.074 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02947/0.1659, allocations: 1.67 MB / 367.6 MB, free: 3.492 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.269/8.435, allocations: 10.86 kB / 367.6 MB, free: 3.484 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